* pciutils: build a shared libpci.

* pciutils: updated to the latest pci.ids.

svn path=/nixpkgs/trunk/; revision=14490
This commit is contained in:
Eelco Dolstra 2009-03-10 12:25:45 +00:00
parent 610aac30c3
commit 29daeec109
2 changed files with 11 additions and 18 deletions

View File

@ -1,10 +0,0 @@
source $stdenv/setup
preBuild=preBuild
preBuild() {
bunzip2 < $pciids > pci.ids
}
makeFlags="PREFIX=$out $makeFlags"
genericBuild

View File

@ -1,24 +1,27 @@
{stdenv, fetchurl, zlib}:
stdenv.mkDerivation {
name = "pciutils-3.0.0";
builder = ./builder.sh;
name = "pciutils-3.1.2";
src = fetchurl {
url = mirror://kernel/software/utils/pciutils/pciutils-3.0.0.tar.bz2;
sha256 = "1q9j7w95ysy6c02j7p3z58y23n5v2cdjwy6hz8s9xzvnlr0ynpnh";
url = mirror://kernel/software/utils/pciutils/pciutils-3.1.2.tar.bz2;
sha256 = "15wksvqcgdj0hvsp5irc1igiqid69rrzpc33qj9nlyssvyw40vpn";
};
buildInputs = [zlib];
pciids = fetchurl {
url = http://nixos.org/tarballs/pci.ids.20080830.bz2;
sha256 = "0nfjj9lsifmm6js9w0isrscirr1a7dj9ynppbc0g5i19rzrmwafy";
# Obtained from http://pciids.sourceforge.net/v2.2/pci.ids.bz2.
url = http://nixos.org/tarballs/pci.ids.20090220.bz2;
sha256 = "1zdp85vcxhgrw1rwcsa35pk4j1b3scb7i61gzghbcn2mrm9cwwd9";
};
# Override broken auto-detect logic.
makeFlags = "ZLIB=yes DNS=yes";
makeFlags = "ZLIB=yes DNS=yes SHARED=yes PREFIX=\${out}";
preBuild = ''
bunzip2 < $pciids > pci.ids
'';
installTargets = "install install-lib";