stalwart-mail: Fix spam-filter missing from /etc (#422909)
This commit is contained in:
commit
1f9fe92184
@ -18286,6 +18286,13 @@
|
|||||||
];
|
];
|
||||||
matrix = "@normalcea:matrix.org";
|
matrix = "@normalcea:matrix.org";
|
||||||
};
|
};
|
||||||
|
norpol = {
|
||||||
|
name = "Syd Lightyear";
|
||||||
|
email = "norpol+nixpkgs@exaple.org";
|
||||||
|
matrix = "@phileas:asra.gr";
|
||||||
|
github = "norpol";
|
||||||
|
githubId = 98636020;
|
||||||
|
};
|
||||||
nosewings = {
|
nosewings = {
|
||||||
name = "Nicholas Coltharp";
|
name = "Nicholas Coltharp";
|
||||||
email = "coltharpnicholas@gmail.com";
|
email = "coltharpnicholas@gmail.com";
|
||||||
|
|||||||
@ -107,7 +107,7 @@ in
|
|||||||
resolver.public-suffix = lib.mkDefault [
|
resolver.public-suffix = lib.mkDefault [
|
||||||
"file://${pkgs.publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
|
"file://${pkgs.publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
|
||||||
];
|
];
|
||||||
spam-filter.resource = lib.mkDefault "file://${cfg.package}/etc/stalwart/spamfilter.toml";
|
spam-filter.resource = lib.mkDefault "file://${cfg.package.spam-filter}/spam-filter.toml";
|
||||||
webadmin =
|
webadmin =
|
||||||
let
|
let
|
||||||
hasHttpListener = builtins.any (listener: listener.protocol == "http") (
|
hasHttpListener = builtins.any (listener: listener.protocol == "http") (
|
||||||
@ -232,6 +232,7 @@ in
|
|||||||
happysalada
|
happysalada
|
||||||
euxane
|
euxane
|
||||||
onny
|
onny
|
||||||
|
norpol
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,6 +162,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
passthru = {
|
passthru = {
|
||||||
inherit rocksdb; # make used rocksdb version available (e.g., for backup scripts)
|
inherit rocksdb; # make used rocksdb version available (e.g., for backup scripts)
|
||||||
webadmin = callPackage ./webadmin.nix { };
|
webadmin = callPackage ./webadmin.nix { };
|
||||||
|
spam-filter = callPackage ./spam-filter.nix { };
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
tests.stalwart-mail = nixosTests.stalwart-mail;
|
tests.stalwart-mail = nixosTests.stalwart-mail;
|
||||||
};
|
};
|
||||||
@ -187,6 +188,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
onny
|
onny
|
||||||
oddlama
|
oddlama
|
||||||
pandapip1
|
pandapip1
|
||||||
|
norpol
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
43
pkgs/by-name/st/stalwart-mail/spam-filter.nix
Normal file
43
pkgs/by-name/st/stalwart-mail/spam-filter.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
stdenv,
|
||||||
|
stalwart-mail,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "spam-filter";
|
||||||
|
version = "2.0.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "stalwartlabs";
|
||||||
|
repo = "spam-filter";
|
||||||
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-NhD/qUiGhgESwR2IOzAHfDATRlgWMcCktlktvVfDONk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
bash ./build.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp spam-filter.toml $out/
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Secure & modern all-in-one mail server Stalwart (spam-filter module)";
|
||||||
|
homepage = "https://github.com/stalwartlabs/spam-filter";
|
||||||
|
changelog = "https://github.com/stalwartlabs/spam-filter/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||||
|
license = with lib.licenses; [
|
||||||
|
mit
|
||||||
|
asl20
|
||||||
|
];
|
||||||
|
inherit (stalwart-mail.meta) maintainers;
|
||||||
|
};
|
||||||
|
})
|
||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
stalwart-mail,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
trunk,
|
trunk,
|
||||||
tailwindcss_3,
|
tailwindcss_3,
|
||||||
@ -14,20 +15,19 @@
|
|||||||
zip,
|
zip,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "webadmin";
|
pname = "webadmin";
|
||||||
version = "0.1.28";
|
version = "0.1.28";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "stalwartlabs";
|
owner = "stalwartlabs";
|
||||||
repo = "webadmin";
|
repo = "webadmin";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-OgZ2qs84zVM2zNmBQSPnb9Uy4mahzNC81vbWM9wmrn4=";
|
hash = "sha256-OgZ2qs84zVM2zNmBQSPnb9Uy4mahzNC81vbWM9wmrn4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
npmDeps = fetchNpmDeps {
|
npmDeps = fetchNpmDeps {
|
||||||
inherit src;
|
name = "${finalAttrs.pname}-npm-deps";
|
||||||
name = "${pname}-npm-deps";
|
|
||||||
hash = "sha256-na1HEueX8w7kuDp8LEtJ0nD1Yv39cyk6sEMpS1zix2s=";
|
hash = "sha256-na1HEueX8w7kuDp8LEtJ0nD1Yv39cyk6sEMpS1zix2s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -71,8 +71,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
meta = {
|
meta = {
|
||||||
description = "Secure & modern all-in-one mail server Stalwart (webadmin module)";
|
description = "Secure & modern all-in-one mail server Stalwart (webadmin module)";
|
||||||
homepage = "https://github.com/stalwartlabs/webadmin";
|
homepage = "https://github.com/stalwartlabs/webadmin";
|
||||||
changelog = "https://github.com/stalwartlabs/webadmin/blob/${src.tag}/CHANGELOG.md";
|
changelog = "https://github.com/stalwartlabs/webadmin/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||||
license = lib.licenses.agpl3Only;
|
license = lib.licenses.agpl3Only;
|
||||||
maintainers = with lib.maintainers; [ onny ];
|
inherit (stalwart-mail.meta) maintainers;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
@ -10741,6 +10741,7 @@ with pkgs;
|
|||||||
};
|
};
|
||||||
|
|
||||||
stalwart-mail-webadmin = stalwart-mail.webadmin;
|
stalwart-mail-webadmin = stalwart-mail.webadmin;
|
||||||
|
stalwart-mail-spam-filter = stalwart-mail.spam-filter;
|
||||||
|
|
||||||
stalwart-mail-enterprise = stalwart-mail.override {
|
stalwart-mail-enterprise = stalwart-mail.override {
|
||||||
stalwartEnterprise = true;
|
stalwartEnterprise = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user