Add missing binaries to the GHC wrapper.

svn path=/nixpkgs/trunk/; revision=21434
This commit is contained in:
Andres Löh 2010-04-29 17:35:05 +00:00
parent 170b98be32
commit 7d2ae46bce

View file

@ -20,6 +20,9 @@ stdenv.mkDerivation {
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
for prg in hp2ps hpc hasktags hsc2hs; do
test -x $ghc/bin/$prg && ln -s $ghc/bin/$prg $out/bin/$prg
done
cat >> $out/bin/ghc-packages << EOF cat >> $out/bin/ghc-packages << EOF
#! /bin/bash -e #! /bin/bash -e
declare -A GHC_PACKAGES_HASH # using bash4 hashs to get uniq paths declare -A GHC_PACKAGES_HASH # using bash4 hashs to get uniq paths