* small fix for the generic Cabal builder

* added Crypto and pcre-light packages

svn path=/nixpkgs/trunk/; revision=10250
This commit is contained in:
Andres Löh
2008-01-22 19:02:55 +00:00
parent 99f35b7435
commit 021e9b704b
4 changed files with 35 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ attrs :
for i in Setup.hs Setup.lhs; do
test -f $i && ghc --make $i
done
./Setup configure --prefix="$out"
./Setup configure --verbose --prefix="$out"
eval "$postConfigure"
'';
@@ -78,11 +78,11 @@ attrs :
./Setup copy
./Setup register --gen-script
mkdir $out/nix-support
mkdir -p $out/nix-support
sed -i 's/|.*\(ghc-pkg update\)/| \1/' register.sh
cp register.sh $out/nix-support/register-ghclib.sh
sed -i 's/\(ghc-pkg update\)/\1 --user/' register.sh
mkdir $out/bin
mkdir -p $out/bin
cp register.sh $out/bin/register-${self.name}.sh
eval "$postInstall"