* Added libsmbios for access to Dell-specific hardware features.

* Added more optional Hal dependencies.

svn path=/nixpkgs/trunk/; revision=8844
This commit is contained in:
Eelco Dolstra 2007-06-07 22:02:12 +00:00
parent 42c246ec16
commit cb3b10a646
3 changed files with 25 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, python, pciutils, usbutils, expat
, libusb, dbus, dbus_glib, glib, libvolume_id, perl, perlXMLParser
, gettext
, gettext, zlib /* required by pciutils */, eject, libsmbios
}:
stdenv.mkDerivation {
@ -13,7 +13,7 @@ stdenv.mkDerivation {
buildInputs = [
pkgconfig python pciutils expat libusb dbus dbus_glib glib
libvolume_id perl perlXMLParser gettext
libvolume_id perl perlXMLParser gettext zlib libsmbios
];
# !!! Hm, maybe the pci/usb.ids location should be in /etc, so that
@ -24,6 +24,7 @@ stdenv.mkDerivation {
--disable-docbook-docs
--disable-gtk-doc
--localstatedir=/var
--with-eject=${eject}/bin/eject
";
/*

View File

@ -0,0 +1,17 @@
{stdenv, fetchurl, libxml2}:
stdenv.mkDerivation {
name = "libsmbios-0.13.6";
src = fetchurl {
url = http://linux.dell.com/libsmbios/download/libsmbios/libsmbios-0.13.6/libsmbios-0.13.6.tar.gz;
sha256 = "0zjch3xzyr289x64wzaj67l4jj0x645krxmx4yqn18hp2innfffs";
};
buildInputs = [libxml2];
configureFlags = "--disable-static"; # bloated enough as it is...
# `make install' forgets to install the header files.
postInstall = "
ensureDir $out/include
cp -prvd include/smbios $out/include/
";
}

View File

@ -2233,7 +2233,7 @@ rec {
hal = import ../os-specific/linux/hal {
inherit fetchurl stdenv pkgconfig python pciutils usbutils expat
libusb dbus dbus_glib libvolume_id perl perlXMLParser
gettext;
gettext zlib eject libsmbios;
inherit (gtkLibs) glib;
};
@ -2364,6 +2364,10 @@ rec {
inherit fetchurl stdenv;
};
libsmbios = import ../os-specific/linux/libsmbios {
inherit fetchurl stdenv libxml2;
};
klibc = import ../os-specific/linux/klibc {
inherit fetchurl stdenv perl bison mktemp kernel;
};