2009-09-25 22:43:25 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-05-27 20:33:46 +01:00
|
|
|
name = "pm-utils-1.3.0";
|
2009-09-25 22:43:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pm-utils.freedesktop.org/releases/${name}.tar.gz";
|
2010-05-27 20:33:46 +01:00
|
|
|
md5 = "37d71f8adbb409442212a85a080d324d";
|
2009-09-25 22:43:25 +01:00
|
|
|
};
|
|
|
|
|
2009-09-26 18:09:51 +01:00
|
|
|
configureFlags = "--sysconfdir=/etc";
|
|
|
|
|
2009-09-25 22:43:25 +01:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
# Install the manpages (xmlto isn't really needed).
|
|
|
|
substituteInPlace man/Makefile.in --replace '@HAVE_XMLTO_TRUE@' ""
|
|
|
|
|
|
|
|
# Don't screw up the PATH.
|
|
|
|
substituteInPlace pm/pm-functions.in --replace '/sbin:/usr/sbin:/bin:/usr/bin' '$PATH'
|
2009-09-26 18:09:51 +01:00
|
|
|
|
|
|
|
substituteInPlace pm/sleep.d/00logging --replace /bin/uname "$(type -P uname)"
|
2009-09-25 22:43:25 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pm-utils.freedesktop.org/wiki/;
|
|
|
|
description = "A small collection of scripts that handle suspend and resume on behalf of HAL";
|
|
|
|
license = "GPLv2";
|
|
|
|
};
|
|
|
|
}
|