From efa1bf9cb57c4fd52641403563324c0c9bf343b4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Feb 2009 23:12:18 +0000 Subject: [PATCH] * Added acpid, a daemon that monitors ACPI events. svn path=/nixpkgs/trunk/; revision=14026 --- pkgs/os-specific/linux/acpid/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/os-specific/linux/acpid/default.nix diff --git a/pkgs/os-specific/linux/acpid/default.nix b/pkgs/os-specific/linux/acpid/default.nix new file mode 100644 index 000000000000..876152472639 --- /dev/null +++ b/pkgs/os-specific/linux/acpid/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "acpid-1.0.8"; + + src = fetchurl { + url = mirror://sourceforge/acpid/acpid-1.0.8.tar.gz; + sha256 = "1cdp4vql8ya073b42mjpzpzzn1py00baazq91837vhrq5hqfaynm"; + }; + + preBuild = '' + makeFlagsArray=(BINDIR=$out/bin SBINDIR=$out/sbin MAN8DIR=$out/share/man/man8) + ''; + + meta = { + homepage = http://acpid.sourceforge.net/; + description = "A daemon for delivering ACPI events to userspace programs"; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f861bea95a08..af9650797119 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5905,6 +5905,10 @@ let inherit fetchurl stdenv; }; + acpid = import ../os-specific/linux/acpid { + inherit fetchurl stdenv; + }; + acpitool = import ../os-specific/linux/acpitool { inherit fetchurl stdenv; };