diff options
author | Marc Weber <marco-oweber@gmx.de> | 2007-11-05 09:27:36 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2007-11-05 09:27:36 +0000 |
commit | fff1ba967e6d4d993bae6a776de4d6cde26b43f0 (patch) | |
tree | 37b8cdd14afaa3bd8cc1f7c1c321f2a0962cdaca /pkgs/development/libraries | |
parent | 82ed95c0cc35dd396020af84f7c37add75a97749 (diff) | |
download | nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar.gz nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar.bz2 nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar.lz nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar.xz nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.tar.zst nixpkgs-fff1ba967e6d4d993bae6a776de4d6cde26b43f0.zip |
New proposal on howto library dependencies could be handled.
Just install ghc68_wrapper which will install the required dependencies ghc (and libraries) itself. The list libraries given in the wrapper attribute set can be user tuned in the future ? An alternative would be creating something similar to the gcc/g++ include/ lib/ scheme which is could be used by ghc to find installed packages.. svn path=/nixpkgs/trunk/; revision=9581
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/haskell/generic/ghcPkgUtil.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/haskell/generic/ghcPkgUtil.sh b/pkgs/development/libraries/haskell/generic/ghcPkgUtil.sh index e265195b321..5760372888e 100644 --- a/pkgs/development/libraries/haskell/generic/ghcPkgUtil.sh +++ b/pkgs/development/libraries/haskell/generic/ghcPkgUtil.sh @@ -16,7 +16,11 @@ # if not already contained setupHookRegisteringPackageDatabase(){ ensureDir $out/nix-support; - local pkgdb=$out/nix-support/package.conf + if test -n "$1"; then + local pkgdb=$1 + else + local pkgdb=$out/nix-support/package.conf + fi cat >> $out/nix-support/setup-hook << EOF echo \$GHC_PACKAGE_PATH | grep -l $pkgdb &> /dev/null || \ @@ -28,6 +32,6 @@ EOF createEmptyPackageDatabaseAndSetupHook(){ ensureDir $out/nix-support; PACKAGE_DB=$out/nix-support/package.conf; - echo '[]' > $PACKAGE_DB"; + echo '[]' > "$PACKAGE_DB"; setupHookRegisteringPackageDatabase } |