summary refs log blame commit diff
path: root/pkgs/os-specific/linux/hal/default.nix
blob: 1fc012981053b5cee2c35223b984ed687e5978a9 (plain) (tree)
1
2
3
4

                                                                  
                                                            
      











                                                                     
                                                          




                                                                     

                                    


                          
                                   

    

                                                                                            
    
 
{ stdenv, fetchurl, pkgconfig, python, pciutils, usbutils, expat
, libusb, dbus, dbus_glib, glib, libvolume_id, perl, perlXMLParser
, gettext, zlib /* required by pciutils */, eject, libsmbios
, udev
}:

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
    libvolume_id perl perlXMLParser gettext zlib libsmbios
  ];

  # !!! 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
    --with-usb-ids=${usbutils}/share
    --disable-docbook-docs
    --disable-gtk-doc
    --localstatedir=/var
    --with-eject=${eject}/bin/eject
  ";

  preBuild = "
    substituteInPlace hald/linux/coldplug.c --replace /usr/bin/udevinfo ${udev}/bin/udevinfo
  ";
}