2021-10-31 11:22:45 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2016-08-16 20:58:35 +01:00
|
|
|
|
2021-10-31 11:22:45 +00:00
|
|
|
buildGoModule rec {
|
2021-08-27 15:47:49 +01:00
|
|
|
pname = "hd-idle";
|
2021-10-31 11:22:45 +00:00
|
|
|
version = "1.16";
|
2016-08-16 20:58:35 +01:00
|
|
|
|
2021-10-31 11:22:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adelolmo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-LZcMwF/BhHiWWXMcrzbk8GyvwXdA3B2olmbOBxQwV5g=";
|
2016-08-16 20:58:35 +01:00
|
|
|
};
|
|
|
|
|
2021-10-31 11:22:45 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2016-08-16 20:58:35 +01:00
|
|
|
|
2021-10-31 11:22:45 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage debian/hd-idle.8
|
|
|
|
'';
|
2016-08-16 20:58:35 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-16 20:58:35 +01:00
|
|
|
description = "Spins down external disks after a period of idle time";
|
2021-10-31 11:22:45 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|