Unverified Commit 551915ec authored by Gavin John's avatar Gavin John
Browse files

stalwart-mail: nixfmt

parent bf544fce
Loading
Loading
Loading
Loading
+27 −14
Original line number Diff line number Diff line
@@ -48,14 +48,15 @@ rustPlatform.buildRustPackage {
    rustPlatform.bindgenHook
  ];

  buildInputs = [
  buildInputs =
    [
      bzip2
      openssl
      sqlite
      zstd
  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
    foundationdb
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [ foundationdb ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      darwin.apple_sdk.frameworks.CoreFoundation
      darwin.apple_sdk.frameworks.Security
      darwin.apple_sdk.frameworks.SystemConfiguration
@@ -63,7 +64,15 @@ rustPlatform.buildRustPackage {

  # skip defaults on darwin because foundationdb is not available
  buildNoDefaultFeatures = stdenv.hostPlatform.isDarwin;
  buildFeatures = lib.optional (stdenv.hostPlatform.isDarwin) [ "sqlite" "postgres" "mysql" "rocks" "elastic" "s3" "redis" ];
  buildFeatures = lib.optional (stdenv.hostPlatform.isDarwin) [
    "sqlite"
    "postgres"
    "mysql"
    "rocks"
    "elastic"
    "s3"
    "redis"
  ];

  env = {
    OPENSSL_NO_VENDOR = true;
@@ -149,6 +158,10 @@ rustPlatform.buildRustPackage {
    homepage = "https://github.com/stalwartlabs/mail-server";
    changelog = "https://github.com/stalwartlabs/mail-server/blob/${version}/CHANGELOG";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ happysalada onny oddlama ];
    maintainers = with maintainers; [
      happysalada
      onny
      oddlama
    ];
  };
}