From 1ae3ea8385e60f964c322bd317ebfd55d3597b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 5 Jul 2012 11:55:24 +0200 Subject: [PATCH] hwloc: Propagate `pciutils'. --- pkgs/development/libraries/hwloc/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/hwloc/default.nix b/pkgs/development/libraries/hwloc/default.nix index aa59a8917141..4f2bd4f679a0 100644 --- a/pkgs/development/libraries/hwloc/default.nix +++ b/pkgs/development/libraries/hwloc/default.nix @@ -17,7 +17,11 @@ stdenv.mkDerivation rec { buildInputs = stdenv.lib.filter (x: x != null) ([ expat ncurses ] ++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ]) - ++ (stdenv.lib.optionals stdenv.isLinux [ pciutils numactl ])); + ++ (stdenv.lib.optionals stdenv.isLinux [ numactl ])); + + propagatedBuildInputs = + # Since `libpci' appears in `hwloc.pc', it must be propagated. + stdenv.lib.optional stdenv.isLinux pciutils; postInstall = stdenv.lib.optionalString (stdenv.isLinux && numactl != null)