3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/hd-idle/default.nix

26 lines
632 B
Nix
Raw Normal View History

2016-08-16 20:58:35 +01:00
{ 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;
2016-08-16 21:30:15 +01:00
maintainers = [ maintainers.rycee ];
2016-08-16 20:58:35 +01:00
};
}