ghc-with-packages: set NIX_GHC_XXX variables for runhaskell and runghc, too
This commit is contained in:
parent
459234db20
commit
264ac17a0f
@ -25,7 +25,11 @@ buildEnv {
|
|||||||
|
|
||||||
for prg in runghc runhaskell; do
|
for prg in runghc runhaskell; do
|
||||||
rm -f $out/bin/$prg
|
rm -f $out/bin/$prg
|
||||||
makeWrapper ${ghc}/bin/$prg $out/bin/$prg --add-flags "-f $out/bin/ghc"
|
makeWrapper ${ghc}/bin/$prg $out/bin/$prg \
|
||||||
|
--add-flags "-f $out/bin/ghc" \
|
||||||
|
--set "NIX_GHC" "$out/bin/ghc" \
|
||||||
|
--set "NIX_GHCPKG" "$out/bin/ghc-pkg" \
|
||||||
|
--set "NIX_GHC_LIBDIR" "${libDir}"
|
||||||
done
|
done
|
||||||
|
|
||||||
for prg in ghc-pkg ghc-pkg-${ghc.version}; do
|
for prg in ghc-pkg ghc-pkg-${ghc.version}; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user