2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-08-16 19:58:35 +00:00
|
|
|
|
|
|
|
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)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-16 19:58:35 +00:00
|
|
|
description = "Spins down external disks after a period of idle time";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://hd-idle.sourceforge.net/";
|
2016-08-16 19:58:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2016-08-16 20:30:15 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
2016-08-16 19:58:35 +00:00
|
|
|
};
|
|
|
|
}
|