2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "MailHog";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mailhog/MailHog";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mailhog";
|
|
|
|
repo = "MailHog";
|
2020-12-25 13:55:36 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "124216850572r1h0ii7ad6jd1cd5czcvkz7k2jzvjb4pv2kl8p3y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-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";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|