2008-02-02 21:41:06 +01:00
|
|
|
args: with args;
|
2007-06-05 17:57:26 +02:00
|
|
|
|
2009-04-28 01:01:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hal-0.5.11";
|
2007-06-05 17:57:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-28 01:01:20 +02:00
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
|
|
|
sha256 = "145s20fzb4gaqxmv3r6i29ndwgnap95ric63n1z6g2gp80iry2kk";
|
2007-06-05 17:57:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2008-02-02 21:41:06 +01:00
|
|
|
pkgconfig python pciutils expat libusb dbus.libs dbus_glib glib
|
2009-04-28 01:01:20 +02:00
|
|
|
libvolume_id perl perlXMLParser gettext zlib libsmbios gperf
|
|
|
|
# !!! libsmbios is broken; it doesn't install headers.
|
2007-06-05 17:57:26 +02: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-28 01:01:20 +02:00
|
|
|
configureFlags = ''
|
2007-06-09 21:47:20 +02:00
|
|
|
--with-pci-ids=${pciutils}/share
|
|
|
|
--with-usb-ids=${usbutils}/share
|
2007-06-05 17:57:26 +02:00
|
|
|
--disable-docbook-docs
|
|
|
|
--disable-gtk-doc
|
|
|
|
--localstatedir=/var
|
2007-06-08 00:02:12 +02:00
|
|
|
--with-eject=${eject}/bin/eject
|
2009-04-28 01:01:20 +02:00
|
|
|
--disable-policy-kit
|
|
|
|
'';
|
2007-06-05 17:57:26 +02:00
|
|
|
|
2008-03-06 14:06:32 +01:00
|
|
|
propagatedBuildInputs = [libusb];
|
|
|
|
|
2009-04-28 01:01:20 +02:00
|
|
|
preConfigure = ''
|
2007-06-09 21:47:20 +02:00
|
|
|
substituteInPlace hald/linux/coldplug.c --replace /usr/bin/udevinfo ${udev}/bin/udevinfo
|
2009-04-28 01:01:20 +02:00
|
|
|
|
|
|
|
substituteInPlace tools/Makefile.in --replace /usr/include ${stdenv.glibc}/include
|
|
|
|
'';
|
2007-06-05 17:57:26 +02:00
|
|
|
}
|