diff options
Diffstat (limited to 'pkgs/development/libraries/hwloc')
-rw-r--r-- | pkgs/development/libraries/hwloc/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/hwloc/default.nix b/pkgs/development/libraries/hwloc/default.nix index 303f2750d82ac..09de2e702e139 100644 --- a/pkgs/development/libraries/hwloc/default.nix +++ b/pkgs/development/libraries/hwloc/default.nix @@ -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; |