pkgs/development/compilers/ghc/ghc-get-packages.sh: append global "package.conf" to the list of package config files

The wrapper script for ghc-pkg changes the command's default behavior such that
global packages -- i.e. packages that are part of GHC itself -- are no longer
found:

  $ ghc-pkg describe base
  ghc-pkg: cannot find package base

This patch remedies the problem.

svn path=/nixpkgs/trunk/; revision=19256
This commit is contained in:
Peter Simons 2010-01-06 12:55:25 +00:00
parent 07393ba7f0
commit ad0b6441f8

View File

@ -18,3 +18,4 @@ for p in $PATH; do
test -f $i && echo -n " $prefix$i"
done
done
test -f "$2/../lib/ghc-$version/package.conf" && echo -n " $prefix$2/../lib/ghc-$version/package.conf"