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