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-21 16:19:09 +00:00
|
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3 -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
|