mailhog: migrate to buildGoModule

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-06-08 13:36:11 +02:00
parent d6261b6f04
commit b421d4fd5a

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";