1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

pkgs/build-support/cabal: updated recognition of Haskell packages for the directory new layout used in the stdenv-updates branch

This commit is contained in:
Peter Simons 2013-03-28 14:25:51 +01:00
parent fdbe2878f0
commit 270b858905

View file

@ -110,14 +110,16 @@
done
for p in $extraBuildInputs $propagatedNativeBuildInputs; do
if [ -d "$p/lib/ghc-${ghc.ghc.version}/package.conf.d" ]; then
# Haskell packages don't need any extra configuration.
continue;
fi
if [ -d "$p/include" ]; then
extraConfigureFlags+=" --extra-include-dir=$p/include"
fi
for d in lib{,64}; do
if [ -d "$p/$d" ]; then
if [ ! -d "$p/$d/ghc-pkgs" ]; then
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
fi
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
fi
done
done