2024-06-20 14:57:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "MailHog";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mailhog";
|
|
|
|
repo = "MailHog";
|
2020-12-25 13:55:36 +00:00
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-flxEp9iXLLm/FPP8udlnpbHQpGnqxAhgyOIUUJAJgog=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
go mod init github.com/mailhog/MailHog
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-X main.version=${version}" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Web and API based SMTP testing";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "MailHog";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mailhog/MailHog";
|
2020-12-25 13:55:36 +00:00
|
|
|
changelog = "https://github.com/mailhog/MailHog/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ disassembler jojosch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|