2023-10-13 09:50:48 +00:00
|
|
|
{ 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";
|
2023-10-13 09:50:48 +00:00
|
|
|
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.
|
2023-10-13 09:50:48 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "smtprelay";
|
2023-10-13 09:50:48 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|