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 20:58:35 +01:00
buildGoModule rec {
pname = "hd-idle";
version = "1.16";
2016-08-16 20:58:35 +01:00
src = fetchFromGitHub {
owner = "adelolmo";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LZcMwF/BhHiWWXMcrzbk8GyvwXdA3B2olmbOBxQwV5g=";
2016-08-16 20:58:35 +01:00
};
vendorSha256 = null;
nativeBuildInputs = [ installShellFiles ];
2016-08-16 20:58:35 +01:00
postInstall = ''
installManPage debian/hd-idle.8
'';
2016-08-16 20:58:35 +01:00
meta = with lib; {
2016-08-16 20:58:35 +01: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 20:58:35 +01:00
platforms = platforms.linux;
2016-08-16 21:30:15 +01:00
maintainers = [ maintainers.rycee ];
2016-08-16 20:58:35 +01:00
};
}