2008-02-02 12:41:06 -08:00
|
|
|
args: with args;
|
2007-06-05 08:57:26 -07:00
|
|
|
|
2009-04-28 07:08:18 -07:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2009-04-27 16:01:20 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2009-08-11 14:03:53 -07:00
|
|
|
name = "hal-0.5.13";
|
2009-09-25 16:05:53 -07:00
|
|
|
|
2007-06-05 08:57:26 -07:00
|
|
|
src = fetchurl {
|
2009-04-27 16:01:20 -07:00
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
2009-08-11 14:03:53 -07:00
|
|
|
sha256 = "1by8z7vy1c1m3iyh57rlqx6rah5gj6kx3ba30s9305bnffij5kzb";
|
2007-06-05 08:57:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2008-02-02 12:41:06 -08:00
|
|
|
pkgconfig python pciutils expat libusb dbus.libs dbus_glib glib
|
2009-08-11 14:03:53 -07:00
|
|
|
libuuid perl perlXMLParser gettext zlib gperf
|
2009-09-28 08:33:42 -07:00
|
|
|
consolekit policykit libsmbios
|
2009-04-27 16:01:20 -07:00
|
|
|
# !!! libsmbios is broken; it doesn't install headers.
|
2007-06-05 08:57:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
# !!! Hm, maybe the pci/usb.ids location should be in /etc, so that
|
|
|
|
# we don't have to rebuild HAL when we update the PCI/USB IDs.
|
2009-04-27 16:01:20 -07:00
|
|
|
configureFlags = ''
|
2007-06-09 12:47:20 -07:00
|
|
|
--with-pci-ids=${pciutils}/share
|
|
|
|
--with-usb-ids=${usbutils}/share
|
2007-06-05 08:57:26 -07:00
|
|
|
--localstatedir=/var
|
2007-06-07 15:02:12 -07:00
|
|
|
--with-eject=${eject}/bin/eject
|
2009-08-11 14:03:53 -07:00
|
|
|
--with-linux-input-header=${stdenv.glibc}/include/linux/input.h
|
2009-09-26 11:56:53 -07:00
|
|
|
--enable-umount-helper
|
2009-04-27 16:01:20 -07:00
|
|
|
'';
|
2007-06-05 08:57:26 -07:00
|
|
|
|
2009-08-11 14:03:53 -07:00
|
|
|
propagatedBuildInputs = [libusb libsmbios];
|
2008-03-06 05:06:32 -08:00
|
|
|
|
2009-04-27 16:01:20 -07:00
|
|
|
preConfigure = ''
|
2009-08-11 14:03:53 -07:00
|
|
|
for i in hald/linux/probing/probe-smbios.c hald/linux/osspec.c \
|
2009-08-16 19:04:26 -07:00
|
|
|
hald/linux/coldplug.c hald/linux/blockdev.c \
|
2009-09-26 13:29:26 -07:00
|
|
|
tools/hal-storage-mount.c ./tools/hal-storage-shared.c \
|
|
|
|
tools/hal-system-power-pm-is-supported.c \
|
|
|
|
tools/linux/hal-*-linux
|
2009-08-11 14:03:53 -07:00
|
|
|
do
|
|
|
|
substituteInPlace $i \
|
|
|
|
--replace /usr/sbin/dmidecode ${dmidecode}/sbin/dmidecode \
|
2009-08-16 19:04:26 -07:00
|
|
|
--replace /sbin/udevadm ${udev}/sbin/udevadm \
|
|
|
|
--replace /bin/mount ${utillinuxng}/bin/mount \
|
2009-09-26 13:29:26 -07:00
|
|
|
--replace /bin/umount ${utillinuxng}/bin/umount \
|
|
|
|
--replace /usr/bin/pm-is-supported ${pmutils}/bin/pm-is-supported \
|
|
|
|
--replace /usr/sbin/pm ${pmutils}/sbin/pm
|
2009-08-11 14:03:53 -07:00
|
|
|
done
|
2009-04-27 16:01:20 -07:00
|
|
|
'';
|
2009-09-26 11:56:53 -07:00
|
|
|
|
|
|
|
installFlags = "slashsbindir=$(out)/sbin";
|
2007-06-05 08:57:26 -07:00
|
|
|
}
|