* Added DB_File (dbmmanage needs it).

svn path=/nixpkgs/trunk/; revision=10630
This commit is contained in:
Eelco Dolstra 2008-02-12 08:42:56 +00:00
parent 7558076e10
commit 65866dc7c2
3 changed files with 28 additions and 6 deletions

View File

@ -0,0 +1,11 @@
{fetchurl, perl, db4}:
import ../generic perl {
name = "DB_File-1.816";
src = fetchurl {
url = http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/DB_File-1.816.tar.gz;
sha256 = "1a668hk5v0l180kbqss2hq9khl756cmrykn8fz1rl4qzsp6lq284";
};
perlPreHook = "source ${./hook.sh}";
inherit db4;
}

View File

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

View File

@ -121,15 +121,11 @@ rec {
useFromStdenv = hasIt: it: alternative: if hasIt then it else alternative;
lib = library;
library = import ../lib;
# TODO remove
# lib_unstable = import ../lib/default-unstable.nix;
lib = import ../lib;
# Return an attribute from the Nixpkgs configuration file, or
# a default value if the attribute doesn't exist.
getConfig = attrPath: default: library.getAttr attrPath default config;
getConfig = attrPath: default: lib.getAttr attrPath default config;
# Return user-choosen version of given package. If you define package as
#
@ -3132,6 +3128,10 @@ rec {
};
};
perlDBFile = import ../development/perl-modules/DB_File {
inherit fetchurl perl db4;
};
perlDigestSHA1 = import ../development/perl-modules/generic perl {
name = "Digest-SHA1-2.11";
src = fetchurl {