haskell-generic-builder.nix: don't add lib64 directories to the search path

Packages that provide 32 and 64-bit libraries in the same store path are rare
and usually require manual overrides anyway. It seems pointless to try and
guess proper settings for them. The effect is that we'll end up with bogus
settings that take more effort to correct that it takes to configure proper
settings in the first place. Point in case: haskell-cuda and it's configuration
for "cudatools".

Fixes https://github.com/NixOS/nixpkgs/issues/6564.
This commit is contained in:
Peter Simons 2015-02-25 19:42:02 +01:00
parent bf521d7b55
commit 5ea3b3e36f

View File

@ -147,11 +147,9 @@ stdenv.mkDerivation ({
if [ -d "$p/include" ]; then
configureFlags+=" --extra-include-dirs=$p/include"
fi
for d in lib{,64}; do
if [ -d "$p/$d" ]; then
configureFlags+=" --extra-lib-dirs=$p/$d"
fi
done
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
done
ghc-pkg --${packageDbFlag}="$packageConfDir" recache