32 lines
736 B
Nix
32 lines
736 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "opensmtpd-filter-rspamd";
|
|
version = "0.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "poolpOrg";
|
|
repo = "filter-rspamd";
|
|
rev = "v${version}";
|
|
sha256 = "pcHj4utpf/AIUv8/7mE8BLbE8LYkzNKfc4T4hIHgGeI=";
|
|
};
|
|
|
|
vendorSha256 = "sNF2c+22FMvKoROkA/3KtSnRdJh4YZLaIx35HD896HI=";
|
|
|
|
passthru.tests = {
|
|
opensmtpd-rspamd-integration = nixosTests.opensmtpd-rspamd;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "OpenSMTPD filter integration for the Rspamd daemon";
|
|
homepage = "https://github.com/poolpOrg/filter-rspamd";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
mainProgram = "filter-rspamd";
|
|
};
|
|
}
|