2008-02-02 20:41:06 +00:00
|
|
|
args: with args;
|
2007-06-05 16:57:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-03-06 13:06:32 +00:00
|
|
|
name = "hal-0.5.10";
|
2007-06-05 16:57:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-03-06 13:06:32 +00:00
|
|
|
url = http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz;
|
|
|
|
sha256 = "0k6bgavkry7sl1wwpwfpk15r52b75gfql2qgyijaqaxg826a2was";
|
2007-06-05 16:57:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2008-02-02 20:41:06 +00:00
|
|
|
pkgconfig python pciutils expat libusb dbus.libs dbus_glib glib
|
2007-06-07 23:02:12 +01:00
|
|
|
libvolume_id perl perlXMLParser gettext zlib libsmbios
|
2007-06-05 16:57:26 +01: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.
|
|
|
|
configureFlags = "
|
2007-06-09 20:47:20 +01:00
|
|
|
--with-pci-ids=${pciutils}/share
|
|
|
|
--with-usb-ids=${usbutils}/share
|
2007-06-05 16:57:26 +01:00
|
|
|
--disable-docbook-docs
|
|
|
|
--disable-gtk-doc
|
|
|
|
--localstatedir=/var
|
2007-06-07 23:02:12 +01:00
|
|
|
--with-eject=${eject}/bin/eject
|
2007-06-05 16:57:26 +01:00
|
|
|
";
|
|
|
|
|
2008-03-06 13:06:32 +00:00
|
|
|
propagatedBuildInputs = [libusb];
|
|
|
|
|
2007-06-09 20:47:20 +01:00
|
|
|
preBuild = "
|
|
|
|
substituteInPlace hald/linux/coldplug.c --replace /usr/bin/udevinfo ${udev}/bin/udevinfo
|
2007-06-05 16:57:26 +01:00
|
|
|
";
|
|
|
|
}
|