nixpkgs-suyu/pkgs/os-specific/linux/hd-idle/default.nix
Yureka 670af1fba8 hd-idle: package rewrite
Someone ported the original hd-idle to Golang and is maintaining it.
This replaces the hd-idle package with the actively maintained Golang
port. I assume nobody will need unmaintained original version since
the Golang port can do everything the original version can do.
2021-11-01 23:55:57 +01:00

29 lines
686 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "hd-idle";
version = "1.16";
src = fetchFromGitHub {
owner = "adelolmo";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LZcMwF/BhHiWWXMcrzbk8GyvwXdA3B2olmbOBxQwV5g=";
};
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 ];
};
}