3
0
Fork 0
forked from mirrors/nixpkgs

* Build libperl.so.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15233
This commit is contained in:
Eelco Dolstra 2009-04-21 22:38:52 +00:00
parent 1966dded62
commit ff057f0d07
2 changed files with 9 additions and 7 deletions

View file

@ -1,12 +1,13 @@
source $stdenv/setup source $stdenv/setup
configureFlags="$configureFlags -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
if test "$NIX_ENFORCE_PURITY" = "1"; then if test "$NIX_ENFORCE_PURITY" = "1"; then
GLIBC=$(cat $NIX_GCC/nix-support/orig-libc) GLIBC=$(cat $NIX_GCC/nix-support/orig-libc)
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib" configureFlags="$configureFlags -Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
fi fi
configureScript=./Configure configureScript=./Configure
configureFlags="-de -Dcc=gcc -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3 -Uinstallusrbinperl $extraflags"
dontAddPrefix=1 dontAddPrefix=1
preBuild() { preBuild() {
@ -14,9 +15,4 @@ preBuild() {
substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'" substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
} }
postInstall() {
ensureDir "$out/nix-support"
cp $setupHook $out/nix-support/setup-hook
}
genericBuild genericBuild

View file

@ -4,6 +4,7 @@ stdenv.mkDerivation {
name = "perl-5.10.0"; name = "perl-5.10.0";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = mirror://cpan/src/perl-5.10.0.tar.gz; url = mirror://cpan/src/perl-5.10.0.tar.gz;
sha256 = "0bivbz15x02m02gqs6hs77cgjr2msfrhnvp5xqk359jg6w6llill"; sha256 = "0bivbz15x02m02gqs6hs77cgjr2msfrhnvp5xqk359jg6w6llill";
@ -19,5 +20,10 @@ stdenv.mkDerivation {
./no-sys-dirs.patch ./no-sys-dirs.patch
]; ];
configureFlags = ''
-de -Dcc=gcc -Uinstallusrbinperl -Duseshrplib
-Dprefix=''${out} -Dman1dir=''${out}/share/man/man1 -Dman3dir=''${out}/share/man/man3
'';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
} }