1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/hd-idle/default.nix
2020-04-10 17:54:53 +01:00

26 lines
634 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "hd-idle-1.05";
src = fetchurl {
url = "mirror://sourceforge/project/hd-idle/${name}.tgz";
sha256 = "031sm996s0rhy3z91b9xvyimsj2yd2fhsww2al2hxda5s5wzxzjf";
};
prePatch = ''
substituteInPlace Makefile \
--replace "-g root -o root" ""
'';
installFlags = [ "TARGET_DIR=$(out)" ];
meta = with stdenv.lib; {
description = "Spins down external disks after a period of idle time";
homepage = "http://hd-idle.sourceforge.net/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.rycee ];
};
}