2006-12-15 14:32:55 +01:00
|
|
|
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
|
|
|
|
|
2007-08-15 13:25:20 +02:00
|
|
|
configureFlags="--with-readline-libraries=\"$readline/lib\""
|
|
|
|
|
|
|
|
preConfigure()
|
|
|
|
{
|
|
|
|
chmod u+x rts/gmp/configure
|
|
|
|
# add library paths for gmp, ncurses
|
|
|
|
sed -i "s|^\(library-dirs.*$\)|\1 \"$gmp/lib\"|" rts/package.conf.in
|
|
|
|
sed -i "s|^\(library-dirs.*$\)|\1 \"$ncurses/lib\"|" libraries/readline/package.conf.in
|
|
|
|
}
|
|
|
|
preConfigure=preConfigure
|
|
|
|
|
2006-12-15 14:32:55 +01:00
|
|
|
# Standard configure/make/make install
|
|
|
|
genericBuild
|