2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2003-11-05 13:17:48 +01:00
|
|
|
|
2004-03-11 18:26:14 +01:00
|
|
|
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
|
2006-10-26 12:13:59 +02:00
|
|
|
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
|
2004-03-11 18:26:14 +01:00
|
|
|
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
|
|
|
fi
|
|
|
|
|
2004-09-18 23:11:58 +02:00
|
|
|
configureScript=./Configure
|
|
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
|
|
|
dontAddPrefix=1
|
|
|
|
|
2005-03-10 13:49:37 +01:00
|
|
|
postInstall() {
|
|
|
|
ensureDir "$out/nix-support"
|
|
|
|
cp $setupHook $out/nix-support/setup-hook
|
|
|
|
}
|
|
|
|
postInstall=postInstall
|
|
|
|
|
2006-10-26 12:13:59 +02:00
|
|
|
genericBuild
|