Commit 1b85f21c authored by liberodark's avatar liberodark
Browse files

stalwart-mail: add allow networking for darwnin

parent c2f925d5
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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
    ];
  };
}
})