* Build HAL with pm-utils support.

svn path=/nixpkgs/trunk/; revision=17450
This commit is contained in:
Eelco Dolstra 2009-09-26 20:29:26 +00:00
parent 16583ec566
commit b642db4d0e
2 changed files with 7 additions and 3 deletions

View File

@ -33,13 +33,17 @@ stdenv.mkDerivation rec {
preConfigure = ''
for i in hald/linux/probing/probe-smbios.c hald/linux/osspec.c \
hald/linux/coldplug.c hald/linux/blockdev.c \
tools/hal-storage-mount.c ./tools/hal-storage-shared.c
tools/hal-storage-mount.c ./tools/hal-storage-shared.c \
tools/hal-system-power-pm-is-supported.c \
tools/linux/hal-*-linux
do
substituteInPlace $i \
--replace /usr/sbin/dmidecode ${dmidecode}/sbin/dmidecode \
--replace /sbin/udevadm ${udev}/sbin/udevadm \
--replace /bin/mount ${utillinuxng}/bin/mount \
--replace /bin/umount ${utillinuxng}/bin/umount
--replace /bin/umount ${utillinuxng}/bin/umount \
--replace /usr/bin/pm-is-supported ${pmutils}/bin/pm-is-supported \
--replace /usr/sbin/pm ${pmutils}/sbin/pm
done
'';

View File

@ -5043,7 +5043,7 @@ let
inherit fetchurl stdenv pkgconfig python pciutils usbutils expat
libusb dbus dbus_glib libuuid perl perlXMLParser
gettext zlib eject libsmbios udev gperf dmidecode utillinuxng
consolekit policykit;
consolekit policykit pmutils;
inherit (gtkLibs) glib;
};