2023-10-13 09:50:48 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-07-27 10:23:45 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "smtprelay";
|
2024-05-31 03:33:52 +00:00
|
|
|
version = "1.11.1";
|
2023-07-27 10:23:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "decke";
|
|
|
|
repo = "smtprelay";
|
2023-10-13 09:50:48 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-31 03:33:52 +00:00
|
|
|
hash = "sha256-2fZA2vYJ6c5oaNImvS0KKZo1+Eu7LFO6jCRnChReMcE=";
|
2023-07-27 10:23:45 +00:00
|
|
|
};
|
|
|
|
|
2024-05-25 15:03:40 +00:00
|
|
|
vendorHash = "sha256-BX1Ll0EEo59p+Pe5oM6+6zT6fvnv1RsfX8YEh9RKkWU=";
|
2023-07-27 10:23:45 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|