From a68340c9333ba75db910599b914385c9a56be9c4 Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:46:47 -0500 Subject: [PATCH 1/2] stalwart_0_15: configure `openssl` installation * define openssl installation rather rely on vendored pkg-config to find system openssl * limit compilation to what is necessary per phase Resolves: #539070 --- pkgs/by-name/st/stalwart_0_15/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/st/stalwart_0_15/package.nix b/pkgs/by-name/st/stalwart_0_15/package.nix index 398c13f09d14..1aeb92f05e88 100644 --- a/pkgs/by-name/st/stalwart_0_15/package.nix +++ b/pkgs/by-name/st/stalwart_0_15/package.nix @@ -70,8 +70,17 @@ rustPlatform.buildRustPackage (finalAttrs: { ++ lib.optionals withFoundationdb [ "foundationdb" ] ++ lib.optionals stalwartEnterprise [ "enterprise" ]; + cargoBuildFlags = [ + "-p" + "stalwart" + ]; + cargoTestFlags = finalAttrs.cargoBuildFlags; + env = { + # https://docs.rs/openssl/latest/openssl/#manual OPENSSL_NO_VENDOR = true; + OPENSSL_DIR = lib.getDev openssl; + OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib"; ZSTD_SYS_USE_PKG_CONFIG = true; ROCKSDB_INCLUDE_DIR = "${rocksdb}/include"; ROCKSDB_LIB_DIR = "${rocksdb}/lib"; @@ -166,6 +175,8 @@ rustPlatform.buildRustPackage (finalAttrs: { # No queue event received. # NOTE: Test unreliable on high load systems "smtp::management::queue::manage_queue" + "smtp::outbound::mta_sts::mta_sts_verify" + "smtp::outbound::dane::dane_verify" # thread 'responses::tests::parse_responses' panicked at crates/dav-proto/src/responses/mod.rs:671:17: # assertion `left == right` failed: failed for 008.xml # left: ElementEnd From 259ab3bab9cbd70295c523975192b6c05eed2360 Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:03:09 -0500 Subject: [PATCH 2/2] stalwart_0_15: new maintainer * add self as maintainer --- pkgs/by-name/st/stalwart_0_15/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/st/stalwart_0_15/package.nix b/pkgs/by-name/st/stalwart_0_15/package.nix index 1aeb92f05e88..0fd63b04673c 100644 --- a/pkgs/by-name/st/stalwart_0_15/package.nix +++ b/pkgs/by-name/st/stalwart_0_15/package.nix @@ -226,6 +226,7 @@ rustPlatform.buildRustPackage (finalAttrs: { oddlama pandapip1 norpol + debtquity ]; }; })