nixpkgs/pkgs/tools/system/pciutils/default.nix
Eelco Dolstra 29daeec109 * pciutils: build a shared libpci.
* pciutils: updated to the latest pci.ids.

svn path=/nixpkgs/trunk/; revision=14490
2009-03-10 12:25:45 +00:00

33 lines
868 B
Nix

{stdenv, fetchurl, zlib}:
stdenv.mkDerivation {
name = "pciutils-3.1.2";
src = fetchurl {
url = mirror://kernel/software/utils/pciutils/pciutils-3.1.2.tar.bz2;
sha256 = "15wksvqcgdj0hvsp5irc1igiqid69rrzpc33qj9nlyssvyw40vpn";
};
buildInputs = [zlib];
pciids = fetchurl {
# 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 SHARED=yes PREFIX=\${out}";
preBuild = ''
bunzip2 < $pciids > pci.ids
'';
installTargets = "install install-lib";
meta = {
homepage = http://mj.ucw.cz/pciutils.shtml;
description = "A collection of programs for inspecting and manipulating configuration of PCI devices";
};
}