3
0
Fork 0
forked from mirrors/nixpkgs

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 aae9e49cbc
commit 0a97e2153e

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