hd-idle: init at 1.05

This commit is contained in:
Robert Helgesson 2016-08-16 21:58:35 +02:00
parent 2709079569
commit f396a0b4d0
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ 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 = [ maintainer.rycee ];
};
}

View File

@ -10958,6 +10958,8 @@ in
flex = flex_2_5_35; flex = flex_2_5_35;
}; };
hd-idle = callPackage ../os-specific/linux/hd-idle { };
hdparm = callPackage ../os-specific/linux/hdparm { }; hdparm = callPackage ../os-specific/linux/hdparm { };
hibernate = callPackage ../os-specific/linux/hibernate { }; hibernate = callPackage ../os-specific/linux/hibernate { };