nixpkgs/pkgs/development/compilers/ghc-6.8/builder.sh
Andres Löh 23d6fce80d * adding ghc-6.8 even though it still segfaults on my machine
(it's marked lowPrio for now, so it shouldn't break anything)

svn path=/nixpkgs/trunk/; revision=9482
2007-10-19 13:24:29 +00:00

27 lines
733 B
Bash

source $stdenv/setup
# Setup isolated package management
postInstall()
{
ensureDir "$out/nix-support"
echo "# Path to the GHC compiler directory in the store" > $out/nix-support/setup-hook
echo "ghc=$out" >> $out/nix-support/setup-hook
echo "" >> $out/nix-support/setup-hook
cat $setupHook >> $out/nix-support/setup-hook
}
postInstall=postInstall
configureFlags="--with-gmp-libraries=$gmp/lib --with-readline-libraries=\"$readline/lib\""
preConfigure()
{
chmod u+x rts/gmp/configure
# still requires a hack for ncurses
sed -i "s|^\(library-dirs.*$\)|\1 \"$ncurses/lib\"|" libraries/readline/package.conf.in
}
preConfigure=preConfigure
# Standard configure/make/make install
genericBuild