2009-04-20 12:08:09 +00:00
|
|
|
{fetchurl, buildPerlPackage, db4}:
|
2008-02-12 08:42:56 +00:00
|
|
|
|
2012-07-29 18:54:39 +00:00
|
|
|
buildPerlPackage rec {
|
2013-12-20 15:57:24 +00:00
|
|
|
name = "DB_File-1.831";
|
2012-07-29 18:54:39 +00:00
|
|
|
|
2008-02-12 08:42:56 +00:00
|
|
|
src = fetchurl {
|
2012-07-29 18:54:39 +00:00
|
|
|
url = "mirror://cpan/authors/id/P/PM/PMQS/${name}.tar.gz";
|
2013-12-20 15:57:24 +00:00
|
|
|
sha256 = "0hq2vvcsa3nkb5bpcl0nkfsxhk8wyrsp3p3ara18rscrfd783hjs";
|
2008-02-12 08:42:56 +00:00
|
|
|
};
|
2008-10-22 19:25:01 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cat > config.in <<EOF
|
|
|
|
PREFIX = size_t
|
|
|
|
HASH = u_int32_t
|
|
|
|
LIB = ${db4}/lib
|
|
|
|
INCLUDE = ${db4}/include
|
|
|
|
EOF
|
|
|
|
'';
|
2009-10-15 22:08:23 +00: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 = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib/perl5/site_perl/
|
2009-10-15 22:08:23 +00:00
|
|
|
cp -R $out/lib/perl5/5* $out/lib/perl5/site_perl
|
|
|
|
'';
|
2008-02-12 08:42:56 +00:00
|
|
|
}
|