smtprelay: add changelog to meta

- equalize file content
This commit is contained in:
Fabian Affolter 2023-10-13 11:50:48 +02:00 committed by GitHub
parent 6afbeda9d6
commit 1449ebdc34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];
};