42 lines
938 B
Nix
42 lines
938 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "postfix-tlspol";
|
|
version = "1.8.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Zuplu";
|
|
repo = "postfix-tlspol";
|
|
tag = "v${version}";
|
|
hash = "sha256-OBGBjbLnyDKz/UK5th1k/gfxHjBGxyWQKgiXuuJNf8Q=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|