summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pm-utils
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-09-25 21:43:25 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-09-25 21:43:25 +0000
commitef2f9c1968a3eab30acd0bf4709c238f09ea7021 (patch)
tree8c80b8c48229e397427e43a03203b086a26d0ee1 /pkgs/os-specific/linux/pm-utils
parent90fc367427d5d1c7a7af7c3b17c7c064bffa1ed9 (diff)
downloadnixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar.gz
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar.bz2
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar.lz
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar.xz
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.tar.zst
nixpkgs-ef2f9c1968a3eab30acd0bf4709c238f09ea7021.zip
* Added pm-utils.
svn path=/nixpkgs/trunk/; revision=17430
Diffstat (limited to 'pkgs/os-specific/linux/pm-utils')
-rw-r--r--pkgs/os-specific/linux/pm-utils/default.nix25
1 files changed, 25 insertions, 0 deletions
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 00000000000..957ba781640
--- /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";
+  };
+}