2007-06-05 16:57:26 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, pciutils, usbutils, expat
|
|
|
|
, libusb, dbus, dbus_glib, glib, libvolume_id, perl, perlXMLParser
|
2007-06-07 23:02:12 +01:00
|
|
|
, gettext, zlib /* required by pciutils */, eject, libsmbios
|
2007-06-05 16:57:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "hal-0.5.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://people.freedesktop.org/~david/dist/hal-0.5.9.tar.gz;
|
|
|
|
sha256 = "178cm30kshwvs0kf5d3l9cn4hyhfv5h6c6q0qnl0jxhynvpgin35";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig python pciutils expat libusb dbus 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 = "
|
|
|
|
--with-pci-ids=${pciutils}/share/pci.ids
|
|
|
|
--with-usb-ids=${usbutils}/share/usb.ids
|
|
|
|
--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
|
|
|
";
|
|
|
|
|
|
|
|
/*
|
|
|
|
preInstall = "
|
|
|
|
installFlagsArray=(DESTDIR=$out/destdir)
|
|
|
|
";
|
|
|
|
|
|
|
|
postInstall = "
|
|
|
|
mv $out/destdir/$out/* $out
|
|
|
|
rm -rf $out/destdir
|
|
|
|
";
|
|
|
|
*/
|
|
|
|
}
|