aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/system/pciutils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/system/pciutils/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/system/pciutils/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/tools/system/pciutils/default.nix b/nixpkgs/pkgs/tools/system/pciutils/default.nix
index e76ab496ef9..1814d4b9765 100644
--- a/nixpkgs/pkgs/tools/system/pciutils/default.nix
+++ b/nixpkgs/pkgs/tools/system/pciutils/default.nix
@@ -1,18 +1,20 @@
-{ stdenv, fetchurl, pkgconfig, zlib, kmod, which }:
+{ stdenv, fetchurl, pkgconfig, zlib, kmod, which
+, static ? stdenv.targetPlatform.isStatic
+}:
stdenv.mkDerivation rec {
- name = "pciutils-3.6.4"; # with release-date database
+ name = "pciutils-3.7.0"; # with release-date database
src = fetchurl {
url = "mirror://kernel/software/utils/pciutils/${name}.tar.xz";
- sha256 = "0mb0f2phdcmp4kfiqsszn2k6nlln0w160ffzrjjv4bbfjwrgfzzn";
+ sha256 = "1ss0rnfsx8gvqjxaji4mvbhf9xyih4cadmgadbwwv8mnx1xvjh4x";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib kmod which ];
makeFlags = [
- "SHARED=yes"
+ "SHARED=${if static then "no" else "yes"}"
"PREFIX=\${out}"
"STRIP="
"HOST=${stdenv.hostPlatform.system}"