Merge pull request #318254 from katexochen/mailhog/mods

mailhog: migrate to buildGoModule
This commit is contained in:
Pol Dellaiera 2024-06-09 22:55:41 +02:00 committed by GitHub
commit 55ce7a10b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,23 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "MailHog";
version = "1.0.1";
goPackagePath = "github.com/mailhog/MailHog";
src = fetchFromGitHub {
owner = "mailhog";
repo = "MailHog";
rev = "v${version}";
sha256 = "124216850572r1h0ii7ad6jd1cd5czcvkz7k2jzvjb4pv2kl8p3y";
hash = "sha256-flxEp9iXLLm/FPP8udlnpbHQpGnqxAhgyOIUUJAJgog=";
};
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
postPatch = ''
go mod init github.com/mailhog/MailHog
'';
vendorHash = null;
ldflags = [ "-s" "-X main.version=${version}" ];
meta = with lib; {
description = "Web and API based SMTP testing";