depot/third_party/nixpkgs/pkgs/os-specific/linux/hd-idle/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

30 lines
713 B
Nix

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