From 1449ebdc3402077fa08872667a043eda749e5aee Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 13 Oct 2023 11:50:48 +0200 Subject: smtprelay: add changelog to meta - equalize file content --- pkgs/servers/mail/smtprelay/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'pkgs/servers/mail') 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 ]; }; -- cgit 1.4.1