about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2013-07-06 10:34:17 +0200
committerVladimír Čunát <vcunat@gmail.com>2013-07-06 11:54:16 +0200
commit52ed09d210d3d6bcb1e3021058c3afe69a02a318 (patch)
treec996bba1fffef119fe5bdc868698c9a55e9fbdce /pkgs/tools/system
parent6726776c74019b8ee6c47c2cf35473db0908237b (diff)
downloadnixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar.gz
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar.bz2
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar.lz
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar.xz
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.tar.zst
nixlib-52ed09d210d3d6bcb1e3021058c3afe69a02a318.zip
pciutils: update
This breaks udev145 due to enabling compression again,
but I rather think we should remove udev145 (not used anywhere).
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/pciutils/default.nix31
1 files changed, 14 insertions, 17 deletions
diff --git a/pkgs/tools/system/pciutils/default.nix b/pkgs/tools/system/pciutils/default.nix
index 78ff9131fa8b..3f63d077c7fa 100644
--- a/pkgs/tools/system/pciutils/default.nix
+++ b/pkgs/tools/system/pciutils/default.nix
@@ -1,29 +1,26 @@
-{ stdenv, fetchurl, 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.1.10";
+  name = "pciutils-3.2.0";
 
   src = fetchurl {
     url = "mirror://kernel/software/utils/pciutils/${name}.tar.bz2";
-    sha256 = "0xdahcxd00c921wnxi0f0w3lzjqdfphwa5vglfcpf0lv3l2w40pl";
+    sha256 = "0d9as9jzjjg5c1nwf58z1y1i7rf9fqxmww1civckhcvcn0xr85mq";
   };
 
-  buildInputs = [ zlib ];
-
-  pciids = fetchurl {
-    # Obtained from http://pciids.sourceforge.net/v2.2/pci.ids.bz2.
-    url = http://tarballs.nixos.org/pci.ids.20120929.bz2;
-    sha256 = "1q3i479ay88wam1zz1vbgkbqb2axg8av9qjxaigrqbnw2pv0srmb";
-  };
+  buildInputs = [ pkgconfig zlib kmod which ];
 
-  # 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}";
+  # currently up-to-date
+  #preBuild = "bunzip2 < ${pciids} > pci.ids";
 
-  preBuild = ''
-    bunzip2 < $pciids > pci.ids
-  '';
+  makeFlags = "SHARED=yes PREFIX=\${out}";
 
   installTargets = "install install-lib";