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 { buildGoModule rec {
pname = "smtprelay"; pname = "smtprelay";
version = "1.10.0"; version = "1.10.0";
@ -6,7 +10,7 @@ buildGoModule rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "decke"; owner = "decke";
repo = "smtprelay"; repo = "smtprelay";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-zZ3rgbo8nvrpFMtUmhyXnTgoVd0FIh1kWzuM2hCh5gY="; hash = "sha256-zZ3rgbo8nvrpFMtUmhyXnTgoVd0FIh1kWzuM2hCh5gY=";
}; };
@ -15,11 +19,16 @@ buildGoModule rec {
CGO_ENABLED = 0; CGO_ENABLED = 0;
# We do not supply the build time as the build wouldn't be reproducible otherwise. # 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; { meta = with lib; {
homepage = "https://github.com/decke/smtprelay"; homepage = "https://github.com/decke/smtprelay";
description = "Simple Golang SMTP relay/proxy server"; description = "Simple Golang SMTP relay/proxy server";
changelog = "https://github.com/decke/smtprelay/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ juliusrickert ]; maintainers = with maintainers; [ juliusrickert ];
}; };