Skip to content

Commit 1b85f21

Browse files
committed
stalwart-mail: add allow networking for darwnin
1 parent c2f925d commit 1b85f21

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkgs/by-name/st/stalwart-mail/package.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
stalwartEnterprise ? false,
1919
}:
2020

21-
rustPlatform.buildRustPackage rec {
21+
rustPlatform.buildRustPackage (finalAttrs: {
2222
pname = "stalwart-mail" + (lib.optionalString stalwartEnterprise "-enterprise");
2323
version = "0.11.8";
2424

2525
src = fetchFromGitHub {
2626
owner = "stalwartlabs";
2727
repo = "mail-server";
28-
tag = "v${version}";
28+
tag = "v${finalAttrs.version}";
2929
hash = "sha256-VqGosbSQxNeOS+kGtvXAmz6vyz5mJlXvKZM57B1Xue4=";
3030
};
3131

@@ -147,6 +147,9 @@ rustPlatform.buildRustPackage rec {
147147

148148
doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
149149

150+
# Allow network access during tests on Darwin/macOS
151+
__darwinAllowLocalNetworking = true;
152+
150153
passthru = {
151154
inherit rocksdb; # make used rocksdb version available (e.g., for backup scripts)
152155
webadmin = callPackage ./webadmin.nix { };
@@ -176,4 +179,4 @@ rustPlatform.buildRustPackage rec {
176179
pandapip1
177180
];
178181
};
179-
}
182+
})

0 commit comments

Comments
 (0)