From ad0b6441f8be9c0f223b344cf8cde627f36b0f1a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 6 Jan 2010 12:55:25 +0000 Subject: 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 --- pkgs/development/compilers/ghc/ghc-get-packages.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/development/compilers/ghc') diff --git a/pkgs/development/compilers/ghc/ghc-get-packages.sh b/pkgs/development/compilers/ghc/ghc-get-packages.sh index 381dd5711119..9ed1455d2321 100755 --- a/pkgs/development/compilers/ghc/ghc-get-packages.sh +++ b/pkgs/development/compilers/ghc/ghc-get-packages.sh @@ -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" -- cgit 1.4.1