Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
974 B
Nix
43 lines
974 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "postfix-tlspol";
|
|
version = "1.8.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Zuplu";
|
|
repo = "postfix-tlspol";
|
|
tag = "v${version}";
|
|
hash = "sha256-ijFKFvdmA1ZHOc3r89yalVSO/tMy9Rzeu1VTgdZLlxI=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
# don't run tests, they perform checks via the network
|
|
doCheck = false;
|
|
|
|
ldflags = [ "-X main.Version=${version}" ];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) postfix-tlspol;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Zuplu/postfix-tlspol/releases/tag/${src.tag}";
|
|
description = "Lightweight MTA-STS + DANE/TLSA resolver and TLS policy server for Postfix, prioritizing DANE";
|
|
homepage = "https://github.com/Zuplu/postfix-tlspol";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
hexa
|
|
valodim
|
|
];
|
|
mainProgram = "postfix-tlspol";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|