hwloc: Add dependency on pciutils and numactl on Linux.

svn path=/nixpkgs/trunk/; revision=34304
This commit is contained in:
Ludovic Courtès 2012-05-31 15:47:38 +00:00
parent c2fd3c184b
commit 99e9ea69b5

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, cairo, expat, ncurses, libX11 }: { stdenv, fetchurl, pkgconfig, cairo, expat, ncurses, libX11
, pciutils, numactl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "hwloc-1.4.2"; name = "hwloc-1.4.2";
@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
# derivation and set optional dependencies to `null'. # derivation and set optional dependencies to `null'.
buildInputs = stdenv.lib.filter (x: x != null) buildInputs = stdenv.lib.filter (x: x != null)
([ expat ncurses ] ([ expat ncurses ]
++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ])); ++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ])
++ (stdenv.lib.optionals stdenv.isLinux [ pciutils numactl ]));
doCheck = true; doCheck = true;