Python 2.5: Add GDBM support.

svn path=/nixpkgs/trunk/; revision=11485
This commit is contained in:
Ludovic Courtès 2008-04-08 07:37:49 +00:00
parent 1f161a2789
commit d0d98958d2
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,8 @@
{stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2}:
{stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2,
gdbmSupport ? true, gdbm ? null}:
assert zlibSupport -> zlib != null;
assert gdbmSupport -> gdbm != null;
with stdenv.lib;
@ -8,8 +10,9 @@ let
buildInputs =
optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc ++
[bzip2] ++
optional zlibSupport zlib;
[bzip2]
++ optional zlibSupport zlib
++ optional gdbmSupport gdbm;
in

View File

@ -1760,7 +1760,7 @@ let pkgs = rec {
};
python25 = import ../development/interpreters/python/2.5 {
inherit fetchurl stdenv zlib bzip2;
inherit fetchurl stdenv zlib bzip2 gdbm;
};
pyrex = pyrex095;