sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / hd / hd-idle / package.nix
blobc87179f74c1aa68a0a83227dfe6bc3b91da277a2
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
8 buildGoModule rec {
9   pname = "hd-idle";
10   version = "1.21";
12   src = fetchFromGitHub {
13     owner = "adelolmo";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "sha256-WHJcysTN9LHI1WnDuFGTyTirxXirpLpJIeNDj4sZGY0=";
17   };
19   vendorHash = null;
21   nativeBuildInputs = [ installShellFiles ];
23   postInstall = ''
24     installManPage debian/hd-idle.8
25   '';
27   meta = with lib; {
28     description = "Spins down external disks after a period of idle time";
29     mainProgram = "hd-idle";
30     homepage = "https://github.com/adelolmo/hd-idle";
31     license = licenses.gpl3Plus;
32     platforms = platforms.linux;
33     maintainers = [ maintainers.rycee ];
34   };