diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-06-09 22:55:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 22:55:41 +0200 |
commit | 55ce7a10b66819d96ffce66df9df73b4846cbb92 (patch) | |
tree | 380d16ae5af1970157ff5dafad556c2f78da4db9 /pkgs | |
parent | 2b52ddcb56429347d163a892fdebbf9d7fe265f5 (diff) | |
parent | b421d4fd5a9e8fc08d81dac7eabb5eed03a78c75 (diff) |
Merge pull request #318254 from katexochen/mailhog/mods
mailhog: migrate to buildGoModule
Diffstat (limited to 'pkgs')
-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"; |