nixpkgs/pkgs/by-name/sm/smtprelay/package.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";
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";
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.
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 ];
};
}