Fix the ghc-wrapper in order to enable runghc/runhaskell.
svn path=/nixpkgs/trunk/; revision=15774
This commit is contained in:
parent
58b4add4e6
commit
2c096bf75f
@ -11,9 +11,12 @@ stdenv.mkDerivation {
|
|||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
cp $GHCGetPackages $out/bin/ghc-get-packages.sh
|
cp $GHCGetPackages $out/bin/ghc-get-packages.sh
|
||||||
chmod 755 $out/bin/ghc-get-packages.sh
|
chmod 755 $out/bin/ghc-get-packages.sh
|
||||||
for prg in ghc ghci ghc-${ghc.version} ghci-${ghc.version} runghc runhaskell; do
|
for prg in ghc ghci ghc-${ghc.version} ghci-${ghc.version}; do
|
||||||
makeWrapper $ghc/bin/$prg $out/bin/$prg --add-flags "\$($out/bin/ghc-get-packages.sh ${ghc.version} \"\$(dirname \$0)\")"
|
makeWrapper $ghc/bin/$prg $out/bin/$prg --add-flags "\$($out/bin/ghc-get-packages.sh ${ghc.version} \"\$(dirname \$0)\")"
|
||||||
done
|
done
|
||||||
|
for prg in runghc runhaskell; do
|
||||||
|
makeWrapper $ghc/bin/$prg $out/bin/$prg --add-flags "\$($out/bin/ghc-get-packages.sh ${ghc.version} \"\$(dirname \$0)\" \" -package-conf --ghc-arg=\")"
|
||||||
|
done
|
||||||
for prg in ghc-pkg ghc-pkg-${ghc.version}; do
|
for prg in ghc-pkg ghc-pkg-${ghc.version}; do
|
||||||
makeWrapper $ghc/bin/$prg $out/bin/$prg --add-flags "\$($out/bin/ghc-get-packages.sh ${ghc.version} \"\$(dirname \$0)\" --package-conf=)"
|
makeWrapper $ghc/bin/$prg $out/bin/$prg --add-flags "\$($out/bin/ghc-get-packages.sh ${ghc.version} \"\$(dirname \$0)\" --package-conf=)"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user