about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-02-21 20:13:36 +0000
committerLudovic Courtès <ludo@gnu.org>2008-02-21 20:13:36 +0000
commit96d354f1935b213e166a61e9d055b05644cfcfac (patch)
tree01d14641079450967923430f4faa4f5500807014
parent44fcdff01bca6d1c9473ad0851ca50fc10d5671f (diff)
Add ACPI, a tiny ACPI client tool for Linux
svn path=/nixpkgs/trunk/; revision=10820
-rw-r--r--pkgs/os-specific/linux/acpi/default.nix19
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/acpi/default.nix b/pkgs/os-specific/linux/acpi/default.nix
new file mode 100644
index 0000000000000..9c09351190714
--- /dev/null
+++ b/pkgs/os-specific/linux/acpi/default.nix
@@ -0,0 +1,19 @@
+args: with args;
+
+stdenv.mkDerivation rec {
+  name = "acpi-0.09";
+  src = fetchurl {
+    url = "http://grahame.angrygoats.net/source/acpi/${name}.tar.gz";
+    sha256 = "11iwzbm3gcn9ljvxl4cjj9fc1n135hx45rhrsprnnkqppndf3vn1";
+  };
+
+
+  meta = {
+    description = ''Linux ACPI client is a small command-line
+                    program that attempts to replicate the functionality of
+		    the "old" `apm' command on ACPI systems.  It includes
+		    battery and thermal information.'';
+    homepage = http://grahame.angrygoats.net/acpi.shtml;
+    license = "GPLv2+";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 370aedaaafcba..941e64012f16c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3654,6 +3654,10 @@ rec {
   };
   */
 
+  acpi = import ../os-specific/linux/acpi {
+    inherit fetchurl stdenv;
+  };
+
   acpitool = import ../os-specific/linux/acpitool {
     inherit fetchurl stdenv;
   };