From ef2f9c1968a3eab30acd0bf4709c238f09ea7021 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Sep 2009 21:43:25 +0000 Subject: [PATCH] * Added pm-utils. svn path=/nixpkgs/trunk/; revision=17430 --- pkgs/os-specific/linux/pm-utils/default.nix | 25 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/os-specific/linux/pm-utils/default.nix diff --git a/pkgs/os-specific/linux/pm-utils/default.nix b/pkgs/os-specific/linux/pm-utils/default.nix new file mode 100644 index 000000000000..957ba7816408 --- /dev/null +++ b/pkgs/os-specific/linux/pm-utils/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f7c10558ced..6f448f5fef24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };