diff options
author | Robert Helgesson <robert@rycee.net> | 2016-08-16 21:58:35 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-08-16 21:59:14 +0200 |
commit | f396a0b4d01077e0694708d5b7df15d7d1daff58 (patch) | |
tree | 4c174608848853d1680be3a397a5cfc8354235e5 /pkgs/os-specific/linux/hd-idle | |
parent | 2709079569d8b4dc8cf656bafeb260bd10f95d26 (diff) |
hd-idle: init at 1.05
Diffstat (limited to 'pkgs/os-specific/linux/hd-idle')
-rw-r--r-- | pkgs/os-specific/linux/hd-idle/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/hd-idle/default.nix b/pkgs/os-specific/linux/hd-idle/default.nix new file mode 100644 index 0000000000000..747fcfa9e4d79 --- /dev/null +++ b/pkgs/os-specific/linux/hd-idle/default.nix @@ -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 ]; + }; +} |