From 6e2c110f765cc12fd73be4c1f52961d2b98f8b17 Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:50:19 -0500 Subject: [PATCH] stalwart_0_16: configure `openssl` installation `openssl-sys` attempts to dynamically find system `openssl` installation via `pkg-config` but fails on darwin systems. This is _likely_ due to sandbox profile however I cannot replicate the hydra failure locally. Standardizing it across all platforms via the `OPENSSL_*` environment variables precludes the need for `pkg-config` to dynamically resolve `openssl`. Resolves: #535421 --- pkgs/by-name/st/stalwart_0_16/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/st/stalwart_0_16/package.nix b/pkgs/by-name/st/stalwart_0_16/package.nix index e8b34a58fa09..15e972e1f299 100644 --- a/pkgs/by-name/st/stalwart_0_16/package.nix +++ b/pkgs/by-name/st/stalwart_0_16/package.nix @@ -64,7 +64,10 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-HVS89Wtjb2nIdyygP8bPRbVhyMRnJlZDfoCQqiMdVe0="; 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";