1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/perl-modules/DB_File/default.nix

20 lines
401 B
Nix
Raw Normal View History

{fetchurl, buildPerlPackage, db}:
2012-07-29 19:54:39 +01:00
buildPerlPackage rec {
name = "DB_File-1.842";
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 = "0w2d99vs9qarng2f9fpg3gchfdzy6an13507jhclcl8wv183h5hg";
};
preConfigure = ''
cat > config.in <<EOF
PREFIX = size_t
HASH = u_int32_t
LIB = ${db.out}/lib
INCLUDE = ${db.dev}/include
EOF
'';
}