mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 10:44:18 +00:00
Merge pull request #318254 from katexochen/mailhog/mods
mailhog: migrate to buildGoModule
This commit is contained in:
commit
55ce7a10b6
@ -1,19 +1,23 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "MailHog";
|
pname = "MailHog";
|
||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
|
|
||||||
goPackagePath = "github.com/mailhog/MailHog";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mailhog";
|
owner = "mailhog";
|
||||||
repo = "MailHog";
|
repo = "MailHog";
|
||||||
rev = "v${version}";
|
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; {
|
meta = with lib; {
|
||||||
description = "Web and API based SMTP testing";
|
description = "Web and API based SMTP testing";
|
||||||
|
Loading…
Reference in New Issue
Block a user