3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/perl-modules/DB_File/default.nix

20 lines
393 B
Nix
Raw Normal View History

{fetchurl, buildPerlPackage, db}:
2012-07-29 19:54:39 +01:00
buildPerlPackage rec {
name = "DB_File-1.831";
2012-07-29 19:54:39 +01:00
src = fetchurl {
2012-07-29 19:54:39 +01:00
url = "mirror://cpan/authors/id/P/PM/PMQS/${name}.tar.gz";
sha256 = "0hq2vvcsa3nkb5bpcl0nkfsxhk8wyrsp3p3ara18rscrfd783hjs";
};
preConfigure = ''
cat > config.in <<EOF
PREFIX = size_t
HASH = u_int32_t
LIB = ${db}/lib
INCLUDE = ${db}/include
EOF
'';
}