nixpkgs/pkgs/os-specific/linux/hd-idle/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
686 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2016-08-16 19:58:35 +00:00
buildGoModule rec {
pname = "hd-idle";
2022-07-30 20:23:30 +00:00
version = "1.17";
2016-08-16 19:58:35 +00:00
src = fetchFromGitHub {
owner = "adelolmo";
repo = pname;
rev = "v${version}";
2022-07-30 20:23:30 +00:00
sha256 = "sha256-BHUjKvhUDeD/Xm0KKbkLH2XWn1W77E7Pm3OSPARF6Xw=";
2016-08-16 19:58:35 +00:00
};
vendorSha256 = null;
nativeBuildInputs = [ installShellFiles ];
2016-08-16 19:58:35 +00:00
postInstall = ''
installManPage debian/hd-idle.8
'';
2016-08-16 19:58:35 +00:00
meta = with lib; {
2016-08-16 19:58:35 +00:00
description = "Spins down external disks after a period of idle time";
homepage = "https://github.com/adelolmo/hd-idle";
license = licenses.gpl3Plus;
2016-08-16 19:58:35 +00:00
platforms = platforms.linux;
2016-08-16 20:30:15 +00:00
maintainers = [ maintainers.rycee ];
2016-08-16 19:58:35 +00:00
};
}