Unverified Commit dc43bb51 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

postfix: build with lmdb support

parent b538aa00
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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