8a282aa46c
* Remove explicit setting of PERL5LIB. * Use the generic Perl builder for the BerkeleyDB and XML::Parser modules. * Prefix all names of Perl modules with `perl-' (in the generic Perl builder). svn path=/nixpkgs/trunk/; revision=2365
18 lines
453 B
Bash
18 lines
453 B
Bash
. $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 |