pciutils: update
This breaks udev145 due to enabling compression again, but I rather think we should remove udev145 (not used anywhere).
This commit is contained in:
parent
6726776c74
commit
52ed09d210
|
@ -1,29 +1,26 @@
|
|||
{ stdenv, fetchurl, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pciutils-3.1.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/software/utils/pciutils/${name}.tar.bz2";
|
||||
sha256 = "0xdahcxd00c921wnxi0f0w3lzjqdfphwa5vglfcpf0lv3l2w40pl";
|
||||
};
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, kmod, which }:
|
||||
|
||||
let
|
||||
pciids = fetchurl {
|
||||
# Obtained from http://pciids.sourceforge.net/v2.2/pci.ids.bz2.
|
||||
url = http://tarballs.nixos.org/pci.ids.20120929.bz2;
|
||||
sha256 = "1q3i479ay88wam1zz1vbgkbqb2axg8av9qjxaigrqbnw2pv0srmb";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pciutils-3.2.0";
|
||||
|
||||
# Override broken auto-detect logic.
|
||||
# Note: we can't compress pci.ids (ZLIB=yes) because udev requires
|
||||
# an uncompressed pci.ids.
|
||||
makeFlags = "ZLIB=no DNS=yes SHARED=yes PREFIX=\${out}";
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/software/utils/pciutils/${name}.tar.bz2";
|
||||
sha256 = "0d9as9jzjjg5c1nwf58z1y1i7rf9fqxmww1civckhcvcn0xr85mq";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
bunzip2 < $pciids > pci.ids
|
||||
'';
|
||||
buildInputs = [ pkgconfig zlib kmod which ];
|
||||
|
||||
# currently up-to-date
|
||||
#preBuild = "bunzip2 < ${pciids} > pci.ids";
|
||||
|
||||
makeFlags = "SHARED=yes PREFIX=\${out}";
|
||||
|
||||
installTargets = "install install-lib";
|
||||
|
||||
|
|
Loading…
Reference in New Issue