From 65c73146aa7dae5402d44255b4ce546d75bd4972 Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Wed, 21 Jan 2026 14:32:21 -0600 Subject: [PATCH] stalwart-mail: 0.14.1 -> 0.15.4 * diff: https://github.com/stalwartlabs/stalwart/compare/v0.14.1...v0.15.4 * changelog: https://github.com/stalwartlabs/stalwart/releases/tag/v0.15.4 * remove `elastic` since it's no longer a feature and included by default (see: https://github.com/stalwartlabs/stalwart/discussions/2632#discussioncomment-15458542) * add `azure` and `nats` build features to align with upstream (see: https://github.com/stalwartlabs/stalwart/blob/659419212050bab50f600493fbe48a28aed44ac5/Dockerfile.build#L127) Resolves: NixOS/nixpkgs#473375 --- pkgs/by-name/st/stalwart-mail/package.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/st/stalwart-mail/package.nix b/pkgs/by-name/st/stalwart-mail/package.nix index 89f81f4a97cf..4be73405bd7e 100644 --- a/pkgs/by-name/st/stalwart-mail/package.nix +++ b/pkgs/by-name/st/stalwart-mail/package.nix @@ -21,16 +21,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "stalwart-mail" + (lib.optionalString stalwartEnterprise "-enterprise"); - version = "0.14.1"; + version = "0.15.4"; src = fetchFromGitHub { owner = "stalwartlabs"; repo = "stalwart"; tag = "v${finalAttrs.version}"; - hash = "sha256-Wsk4n6jLOAFhxYb5Hw8XvQem0xccGGoD729nRz3bRF0="; + hash = "sha256-MIy1/8r5CMrTbVTjLFuUneoL3J38kZIgUMweoeaf3L0="; }; - cargoHash = "sha256-LFXpv8/rHQwzdKEyS4VplQSwFUnZrgv0qDIhZUOGfpo="; + cargoHash = "sha256-jVD11wz9Ab1E9KdNG4kp8Jqm2rJ2aUWuFTAOBga6Fgg="; depsBuildBuild = [ pkg-config @@ -61,9 +61,10 @@ rustPlatform.buildRustPackage (finalAttrs: { "postgres" "mysql" "rocks" - "elastic" "s3" "redis" + "azure" + "nats" ] ++ lib.optionals withFoundationdb [ "foundationdb" ] ++ lib.optionals stalwartEnterprise [ "enterprise" ]; @@ -87,7 +88,7 @@ rustPlatform.buildRustPackage (finalAttrs: { mkdir -p $out/lib/systemd/system substitute resources/systemd/stalwart-mail.service $out/lib/systemd/system/stalwart-mail.service \ - --replace "__PATH__" "$out" + --replace-fail "__PATH__" "$out" ''; checkFlags = lib.forEach [ @@ -169,6 +170,9 @@ rustPlatform.buildRustPackage (finalAttrs: { # left: ElementEnd # right: Bytes([...]) "responses::tests::parse_responses" + # thread 'store::search_tests' (912386) panicked at tests/src/store/mod.rs:116:10: + # Missing store type. Try running `STORE= cargo test`: NotPresent + "store::search_tests" ] (test: "--skip=${test}"); doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);