postfix: build with lmdb support
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
openssl,
|
||||
cyrus_sasl,
|
||||
libnsl,
|
||||
lmdb,
|
||||
coreutils,
|
||||
findutils,
|
||||
gnugrep,
|
||||
@@ -39,6 +40,7 @@ let
|
||||
"-DUSE_CYRUS_SASL"
|
||||
"-I${cyrus_sasl'.dev}/include/sasl"
|
||||
"-DHAS_DB_BYPASS_MAKEDEFS_CHECK"
|
||||
"-DHAS_LMDB"
|
||||
# Fix build with gcc15, no upstream fix for stable releases:
|
||||
# https://www.mail-archive.com/postfix-devel@postfix.org/msg01270.html
|
||||
"-std=gnu17"
|
||||
@@ -58,11 +60,12 @@ let
|
||||
);
|
||||
auxlibs = lib.concatStringsSep " " (
|
||||
[
|
||||
"-lcrypto"
|
||||
"-ldb"
|
||||
"-llmdb"
|
||||
"-lnsl"
|
||||
"-lresolv"
|
||||
"-lsasl2"
|
||||
"-lcrypto"
|
||||
"-lssl"
|
||||
]
|
||||
++ lib.optional withPgSQL "-lpq"
|
||||
@@ -87,11 +90,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
m4
|
||||
];
|
||||
buildInputs = [
|
||||
db
|
||||
openssl
|
||||
cyrus_sasl'
|
||||
db
|
||||
icu
|
||||
libnsl
|
||||
lmdb
|
||||
openssl
|
||||
pcre2
|
||||
]
|
||||
++ lib.optional withPgSQL libpq
|
||||
|
||||
Reference in New Issue
Block a user