2009-04-20 14:08:09 +02:00
|
|
|
{fetchurl, buildPerlPackage, db4}:
|
2008-02-12 09:42:56 +01:00
|
|
|
|
2009-04-20 14:08:09 +02:00
|
|
|
buildPerlPackage {
|
2009-10-16 00:08:23 +02:00
|
|
|
name = "DB_File-1.820";
|
2008-10-22 21:25:01 +02:00
|
|
|
|
2008-02-12 09:42:56 +01:00
|
|
|
src = fetchurl {
|
2009-10-16 00:08:23 +02:00
|
|
|
url = mirror://cpan/authors/id/P/PM/PMQS/DB_File-1.820.tar.gz;
|
|
|
|
sha256 = "0jnz5lsrad67j42sdw5bqpkmgiyj45rpiqgkff3i21252k9d5s7a";
|
2008-02-12 09:42:56 +01:00
|
|
|
};
|
2008-10-22 21:25:01 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cat > config.in <<EOF
|
|
|
|
PREFIX = size_t
|
|
|
|
HASH = u_int32_t
|
|
|
|
LIB = ${db4}/lib
|
|
|
|
INCLUDE = ${db4}/include
|
|
|
|
EOF
|
|
|
|
'';
|
2009-10-16 00:08:23 +02:00
|
|
|
|
|
|
|
# I don't know about perl paths, but PERL5LIB env var is managed through
|
|
|
|
# lib/perl5/site_perl, and the *.pm should be inside lib/perl5/site_perl/...
|
|
|
|
# for other packages to get that in the PERL5LIB env var.
|
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/lib/perl5/site_perl/
|
|
|
|
cp -R $out/lib/perl5/5* $out/lib/perl5/site_perl
|
|
|
|
'';
|
2008-02-12 09:42:56 +01:00
|
|
|
}
|