My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/os-specific/linux/hd-idle/default.nix

29 lines
686 B

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "hd-idle";
version = "1.16";
src = fetchFromGitHub {
owner = "adelolmo";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LZcMwF/BhHiWWXMcrzbk8GyvwXdA3B2olmbOBxQwV5g=";
};
vendorSha256 = null;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage debian/hd-idle.8
'';
meta = with lib; {
description = "Spins down external disks after a period of idle time";
homepage = "https://github.com/adelolmo/hd-idle";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.rycee ];
};
}