mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
31 lines
713 B
Nix
31 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 ];
|
|
};
|
|
}
|