* Unbreak the DB_File / BerkeleyDB Perl modules.

svn path=/nixpkgs/trunk/; revision=13102
This commit is contained in:
Eelco Dolstra 2008-10-22 19:25:01 +00:00
parent 94a773eed3
commit cd48c1b496
4 changed files with 18 additions and 22 deletions

View file

@ -2,10 +2,14 @@
import ../generic perl {
name = "BerkeleyDB-0.27";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/BerkeleyDB-0.27.tar.gz;
url = http://nixos.org/tarballs/BerkeleyDB-0.27.tar.gz;
md5 = "43aa72c0c6941af0d656d749ad543e96";
};
perlPreHook = "source ${./hook.sh}";
inherit db4;
preConfigure = ''
echo "LIB = ${db4}/lib" > config.in
echo "INCLUDE = ${db4}/include" >> config.in
'';
}

View file

@ -1,7 +0,0 @@
oldPreConfigure=$preConfigure
preConfigure=myPreConfigure
myPreConfigure() {
echo "LIB = $db4/lib" > config.in
echo "INCLUDE = $db4/include" >> config.in
$oldPreConfigure
}

View file

@ -2,10 +2,20 @@
import ../generic perl {
name = "DB_File-1.816";
src = fetchurl {
url = mirror://cpan/authors/id/P/PM/PMQS/DB_File-1.816.tar.gz;
sha256 = "1a668hk5v0l180kbqss2hq9khl756cmrykn8fz1rl4qzsp6lq284";
};
perlPreHook = "source ${./hook.sh}";
preConfigure = ''
cat > config.in <<EOF
PREFIX = size_t
HASH = u_int32_t
LIB = ${db4}/lib
INCLUDE = ${db4}/include
EOF
'';
inherit db4;
}

View file

@ -1,11 +0,0 @@
oldPreConfigure=$preConfigure
preConfigure=myPreConfigure
myPreConfigure() {
cat > config.in <<EOF
PREFIX = size_t
HASH = u_int32_t
LIB = $db4/lib
INCLUDE = $db4/include
EOF
$oldPreConfigure
}