hwloc: Make it easy to disable optional dependencies; fix cross-builds.
svn path=/nixpkgs/trunk/; revision=31606
This commit is contained in:
parent
3aa99d803e
commit
eb1360bd66
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,12 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
# XXX: libX11 is not directly needed, but needed as a propagated dep of Cairo.
|
||||
buildInputs = [ pkgconfig cairo expat ncurses libX11 ];
|
||||
buildNativeInputs = [ pkgconfig ];
|
||||
|
||||
# Filter out `null' inputs. This allows users to `.override' the
|
||||
# derivation and set optional dependencies to `null'.
|
||||
buildInputs = stdenv.lib.filter (x: x != null)
|
||||
[ cairo expat ncurses libX11 ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue