2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2003-11-05 12:17:48 +00:00
|
|
|
|
2006-10-27 13:43:32 +01:00
|
|
|
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
2006-10-26 11:13:59 +01:00
|
|
|
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
|
2004-03-11 17:26:14 +00:00
|
|
|
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
|
|
|
fi
|
|
|
|
|
2004-09-18 22:11:58 +01:00
|
|
|
configureScript=./Configure
|
2008-02-22 15:18:22 +00:00
|
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
2004-09-18 22:11:58 +01:00
|
|
|
dontAddPrefix=1
|
|
|
|
|
2007-05-24 15:41:18 +01:00
|
|
|
preBuild=preBuild
|
|
|
|
preBuild() {
|
|
|
|
# Make Cwd work on NixOS (where we don't have a /bin/pwd).
|
|
|
|
substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
|
|
|
|
}
|
|
|
|
|
|
|
|
postInstall=postInstall
|
2005-03-10 12:49:37 +00:00
|
|
|
postInstall() {
|
|
|
|
ensureDir "$out/nix-support"
|
|
|
|
cp $setupHook $out/nix-support/setup-hook
|
|
|
|
}
|
|
|
|
|
2006-10-26 11:13:59 +01:00
|
|
|
genericBuild
|