* Added DB_File (dbmmanage needs it).
svn path=/nixpkgs/trunk/; revision=10630
This commit is contained in:
parent
7558076e10
commit
65866dc7c2
11
pkgs/development/perl-modules/DB_File/default.nix
Normal file
11
pkgs/development/perl-modules/DB_File/default.nix
Normal 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;
|
||||
}
|
11
pkgs/development/perl-modules/DB_File/hook.sh
Normal file
11
pkgs/development/perl-modules/DB_File/hook.sh
Normal 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
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user