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
|
|
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
|
|
|
dontAddPrefix=1
|
|
|
|
|
2005-03-10 12:49:37 +00:00
|
|
|
postInstall() {
|
|
|
|
ensureDir "$out/nix-support"
|
|
|
|
cp $setupHook $out/nix-support/setup-hook
|
|
|
|
}
|
|
|
|
postInstall=postInstall
|
|
|
|
|
2006-10-26 11:13:59 +01:00
|
|
|
genericBuild
|