summary refs log tree commit diff
path: root/pkgs/development/interpreters/perl/builder.sh
blob: e39ae47e573a584ddeff5b2f4c37104cbdad2979 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
source $stdenv/setup

if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
    GLIBC=$(cat $NIX_GCC/nix-support/orig-glibc)
    extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
fi

configureScript=./Configure
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
dontAddPrefix=1

postInstall() {
    ensureDir "$out/nix-support"
    cp $setupHook $out/nix-support/setup-hook
}
postInstall=postInstall

genericBuild