pkgs/build-support/cabal: strip unnecessary --extra-lib-dir arguments for haskell packages
Packages that are registered in the ghc-pkg database don't need any extra flags passed for Cabal to recognize them.
This commit is contained in:
parent
0823aea0a6
commit
0e1dfe702d
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@
|
|||
fi
|
||||
for d in lib{,64}; do
|
||||
if [ -d "$p/$d" ]; then
|
||||
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
|
||||
if [ ! -d "$p/$d/ghc-pkgs" ]; then
|
||||
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue