pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / servers / mail / smtprelay / default.nix
blobd71d9c5135dd7337b5c7324dfdf4f89567a1d3c5
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "smtprelay";
8   version = "1.11.1";
10   src = fetchFromGitHub {
11     owner = "decke";
12     repo = "smtprelay";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-2fZA2vYJ6c5oaNImvS0KKZo1+Eu7LFO6jCRnChReMcE=";
15   };
17   vendorHash = "sha256-BX1Ll0EEo59p+Pe5oM6+6zT6fvnv1RsfX8YEh9RKkWU=";
19   subPackages = [
20     "."
21   ];
23   CGO_ENABLED = 0;
25   # We do not supply the build time as the build wouldn't be reproducible otherwise.
26   ldflags = [
27     "-s"
28     "-w"
29     "-X=main.appVersion=v${version}"
30   ];
32   meta = with lib; {
33     homepage = "https://github.com/decke/smtprelay";
34     description = "Simple Golang SMTP relay/proxy server";
35     mainProgram = "smtprelay";
36     changelog = "https://github.com/decke/smtprelay/releases/tag/v${version}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ juliusrickert ];
39   };