about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-01-06 12:55:25 +0000
committerPeter Simons <simons@cryp.to>2010-01-06 12:55:25 +0000
commitad0b6441f8be9c0f223b344cf8cde627f36b0f1a (patch)
treeb91db07533b67a570afe14261bb343f1ab3caee8 /pkgs/development/compilers/ghc
parent07393ba7f030999c6ae069ab08e698517428f42b (diff)
downloadnixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar.gz
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar.bz2
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar.lz
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar.xz
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.tar.zst
nixlib-ad0b6441f8be9c0f223b344cf8cde627f36b0f1a.zip
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
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rwxr-xr-xpkgs/development/compilers/ghc/ghc-get-packages.sh1
1 files changed, 1 insertions, 0 deletions
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"