summary refs log tree commit diff
path: root/pkgs/servers/mail
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-10-13 11:50:48 +0200
committerGitHub <noreply@github.com>2023-10-13 11:50:48 +0200
commit1449ebdc3402077fa08872667a043eda749e5aee (patch)
treed1672d37e767e259d6b35806132ee576a3be6019 /pkgs/servers/mail
parent6afbeda9d67dbf8ef62399eb5779721577c9a89b (diff)
downloadnixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar.gz
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar.bz2
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar.lz
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar.xz
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.tar.zst
nixpkgs-1449ebdc3402077fa08872667a043eda749e5aee.zip
smtprelay: add changelog to meta
- equalize file content
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r--pkgs/servers/mail/smtprelay/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/servers/mail/smtprelay/default.nix b/pkgs/servers/mail/smtprelay/default.nix
index 9e0e8c5be3e..b4dd75a42bd 100644
--- a/pkgs/servers/mail/smtprelay/default.nix
+++ b/pkgs/servers/mail/smtprelay/default.nix
@@ -1,4 +1,8 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
 buildGoModule rec {
   pname = "smtprelay";
   version = "1.10.0";
@@ -6,7 +10,7 @@ buildGoModule rec {
   src = fetchFromGitHub {
     owner = "decke";
     repo = "smtprelay";
-    rev = "v${version}";
+    rev = "refs/tags/v${version}";
     hash = "sha256-zZ3rgbo8nvrpFMtUmhyXnTgoVd0FIh1kWzuM2hCh5gY=";
   };
 
@@ -15,11 +19,16 @@ buildGoModule rec {
   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}" ];
+  ldflags = [
+    "-s"
+    "-w"
+    "-X=main.appVersion=v${version}"
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/decke/smtprelay";
     description = "Simple Golang SMTP relay/proxy server";
+    changelog = "https://github.com/decke/smtprelay/releases/tag/v${version}";
     license = licenses.mit;
     maintainers = with maintainers; [ juliusrickert ];
   };