stalwart-mail: add allow networking for darwnin

This commit is contained in:
liberodark 2025-05-22 14:05:15 +02:00
parent c2f925d5a1
commit 1b85f21c1c

View file

@ -18,14 +18,14 @@
stalwartEnterprise ? false,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "stalwart-mail" + (lib.optionalString stalwartEnterprise "-enterprise");
version = "0.11.8";
src = fetchFromGitHub {
owner = "stalwartlabs";
repo = "mail-server";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-VqGosbSQxNeOS+kGtvXAmz6vyz5mJlXvKZM57B1Xue4=";
};
@ -147,6 +147,9 @@ rustPlatform.buildRustPackage rec {
doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
# Allow network access during tests on Darwin/macOS
__darwinAllowLocalNetworking = true;
passthru = {
inherit rocksdb; # make used rocksdb version available (e.g., for backup scripts)
webadmin = callPackage ./webadmin.nix { };
@ -176,4 +179,4 @@ rustPlatform.buildRustPackage rec {
pandapip1
];
};
}
})