forked from mirrors/nixpkgs
afde8e6270
note: the old GHC 6.4(.2?) version is still there. I reused the bootstrap-version to bootstrap GHC-6.6. And some other packages depend on the old GHC version as well. note: only use this package for building other packages. If you install it as an end-user, you'll only be able to use the default GHC libraries, because other libraries are only privately registered to this GHC version during a nix-build by hooks (which are not executed when you run GHC yourself as an end-user). Consequently, also added a newer version of uulib and uuagc. svn path=/nixpkgs/trunk/; revision=7346
22 lines
357 B
Bash
22 lines
357 B
Bash
source $stdenv/setup
|
|
|
|
|
|
tar xzf "$src" &&
|
|
cd uulib-* &&
|
|
|
|
|
|
autoconf &&
|
|
./configure --prefix=$out &&
|
|
|
|
|
|
ghc --make Setup.hs -o setup -package Cabal &&
|
|
./setup configure --prefix=$out --with-hc-pkg=ghc-pkg &&
|
|
|
|
|
|
./setup build &&
|
|
./setup install &&
|
|
./setup register --gen-script &&
|
|
|
|
mkdir -p $out/nix-support/ &&
|
|
cp register.sh $out/nix-support/register-ghclib.sh
|