* Updated HAL to 0.5.11. Passed gperf and patched a Makefile to

ensure that it installs policy/10osvendor/10-keymap.fdi, which the
  evdev driver in X.org relies on.

svn path=/nixpkgs/trunk/; revision=15342
This commit is contained in:
Eelco Dolstra 2009-04-27 23:01:20 +00:00
parent 5703b08f47
commit 213fff3ca0
2 changed files with 14 additions and 10 deletions

View file

@ -1,32 +1,36 @@
args: with args;
stdenv.mkDerivation {
name = "hal-0.5.10";
stdenv.mkDerivation rec {
name = "hal-0.5.11";
src = fetchurl {
url = http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz;
sha256 = "0k6bgavkry7sl1wwpwfpk15r52b75gfql2qgyijaqaxg826a2was";
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
sha256 = "145s20fzb4gaqxmv3r6i29ndwgnap95ric63n1z6g2gp80iry2kk";
};
buildInputs = [
pkgconfig python pciutils expat libusb dbus.libs dbus_glib glib
libvolume_id perl perlXMLParser gettext zlib libsmbios
libvolume_id perl perlXMLParser gettext zlib libsmbios gperf
# !!! libsmbios is broken; it doesn't install headers.
];
# !!! 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 = "
configureFlags = ''
--with-pci-ids=${pciutils}/share
--with-usb-ids=${usbutils}/share
--disable-docbook-docs
--disable-gtk-doc
--localstatedir=/var
--with-eject=${eject}/bin/eject
";
--disable-policy-kit
'';
propagatedBuildInputs = [libusb];
preBuild = "
preConfigure = ''
substituteInPlace hald/linux/coldplug.c --replace /usr/bin/udevinfo ${udev}/bin/udevinfo
";
substituteInPlace tools/Makefile.in --replace /usr/include ${stdenv.glibc}/include
'';
}

View file

@ -4609,7 +4609,7 @@ let
hal = import ../os-specific/linux/hal {
inherit fetchurl stdenv pkgconfig python pciutils usbutils expat
libusb dbus dbus_glib libvolume_id perl perlXMLParser
gettext zlib eject libsmbios udev;
gettext zlib eject libsmbios udev gperf;
inherit (gtkLibs) glib;
};