02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
29 lines
686 B
Nix
29 lines
686 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hd-idle";
|
|
version = "1.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adelolmo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-BHUjKvhUDeD/Xm0KKbkLH2XWn1W77E7Pm3OSPARF6Xw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|