7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
22 lines
570 B
Bash
22 lines
570 B
Bash
source $stdenv/setup
|
|
|
|
if test "$NIX_ENFORCE_PURITY" = "1"; then
|
|
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
|
|
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
|
fi
|
|
|
|
configureScript=./Configure
|
|
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
|
dontAddPrefix=1
|
|
|
|
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() {
|
|
ensureDir "$out/nix-support"
|
|
cp $setupHook $out/nix-support/setup-hook
|
|
}
|
|
|
|
genericBuild
|