nixpkgs/pkgs/servers/mail/smtprelay/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
904 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
2023-07-27 10:23:45 +00:00
buildGoModule rec {
pname = "smtprelay";
version = "1.10.0";
src = fetchFromGitHub {
owner = "decke";
repo = "smtprelay";
rev = "refs/tags/v${version}";
2023-07-27 10:23:45 +00:00
hash = "sha256-zZ3rgbo8nvrpFMtUmhyXnTgoVd0FIh1kWzuM2hCh5gY=";
};
vendorHash = "sha256-assGzM8/APNVVm2vZapPK6sh3tWNTnw6PSFwvEqNDPk=";
2023-10-13 10:21:20 +00:00
subPackages = [
"."
];
2023-07-27 10:23:45 +00:00
CGO_ENABLED = 0;
# We do not supply the build time as the build wouldn't be reproducible otherwise.
ldflags = [
"-s"
"-w"
"-X=main.appVersion=v${version}"
];
2023-07-27 10:23:45 +00:00
meta = with lib; {
homepage = "https://github.com/decke/smtprelay";
description = "Simple Golang SMTP relay/proxy server";
mainProgram = "smtprelay";
changelog = "https://github.com/decke/smtprelay/releases/tag/v${version}";
2023-07-27 10:23:45 +00:00
license = licenses.mit;
maintainers = with maintainers; [ juliusrickert ];
};
}