From e385ca7ede12dcf6b115920aa7d7c41d3af5e24c Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Sat, 19 May 2018 17:44:17 -0400 Subject: [PATCH] pciutils: build with dns query support This enables `lspci -q` to look up unknown PCI IDs via DNS queries without needing the `update-pciids` script that the derivation doesn't include. --- pkgs/tools/system/pciutils/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/pciutils/default.nix b/pkgs/tools/system/pciutils/default.nix index 3cd00b3394cf..c4b5699ffc29 100644 --- a/pkgs/tools/system/pciutils/default.nix +++ b/pkgs/tools/system/pciutils/default.nix @@ -11,7 +11,14 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ zlib kmod which ]; - makeFlags = [ "SHARED=yes" "PREFIX=\${out}" "STRIP=" "HOST=${stdenv.hostPlatform.system}" "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ]; + makeFlags = [ + "SHARED=yes" + "PREFIX=\${out}" + "STRIP=" + "HOST=${stdenv.hostPlatform.system}" + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" + "DNS=yes" + ]; installTargets = "install install-lib"; @@ -26,4 +33,3 @@ stdenv.mkDerivation rec { maintainers = [ maintainers.vcunat ]; # not really, but someone should watch it }; } -