Unverified Commit 1449ebdc authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

smtprelay: add changelog to meta

- equalize file content
parent 6afbeda9
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
{ 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 ];
  };