* Added pm-utils.

svn path=/nixpkgs/trunk/; revision=17430
This commit is contained in:
Eelco Dolstra 2009-09-25 21:43:25 +00:00
parent 90fc367427
commit ef2f9c1968
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "pm-utils-1.2.5";
src = fetchurl {
url = "http://pm-utils.freedesktop.org/releases/${name}.tar.gz";
sha256 = "1kp4l21786kbvnzlf3n9svl4m93nzi1hr9pknv0r3zhzfz3hgkw4";
};
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'
'';
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";
};
}

View file

@ -5774,6 +5774,10 @@ let
inherit lib;
};
pmutils = import ../os-specific/linux/pm-utils {
inherit fetchurl stdenv;
};
powertop = import ../os-specific/linux/powertop {
inherit fetchurl stdenv ncurses gettext;
};