db: disable dbm support by default

This commit is contained in:
Daiderd Jordan
2017-01-23 22:21:20 +01:00
parent df67f58fbf
commit 02341c20bc
4 changed files with 8 additions and 45 deletions
+8 -6
View File
@@ -1,6 +1,7 @@
{ stdenv, fetchurl
, cxxSupport ? true
, compat185 ? true
, dbmSupport ? false
# Options from inherited versions
, version, sha256
@@ -19,12 +20,13 @@ stdenv.mkDerivation (rec {
patches = extraPatches;
configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185")
"--enable-dbm"
(stdenv.lib.optionalString stdenv.isFreeBSD "--with-pic")
];
configureFlags =
[
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185")
]
++ stdenv.lib.optional dbmSupport "--enable-dbm"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
preConfigure = ''
cd build_unix