diff options
-rw-r--r-- | pkgs/servers/mail/mailhog/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/servers/mail/mailhog/default.nix b/pkgs/servers/mail/mailhog/default.nix index ef20fa92f385b..a4fe8fb5ea191 100644 --- a/pkgs/servers/mail/mailhog/default.nix +++ b/pkgs/servers/mail/mailhog/default.nix @@ -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"; |