2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-06-24 16:05:34 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "MailHog";
|
2020-12-17 15:58:29 +00:00
|
|
|
version = "1.0.1";
|
2017-06-24 16:05:34 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mailhog/MailHog";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mailhog";
|
|
|
|
repo = "MailHog";
|
2020-12-17 15:58:29 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "124216850572r1h0ii7ad6jd1cd5czcvkz7k2jzvjb4pv2kl8p3y";
|
2017-06-24 16:05:34 +00:00
|
|
|
};
|
|
|
|
|
2021-08-26 03:31:57 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2021-03-04 10:06:15 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-24 16:05:34 +00:00
|
|
|
description = "Web and API based SMTP testing";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mailhog/MailHog";
|
2020-12-17 15:58:29 +00:00
|
|
|
changelog = "https://github.com/mailhog/MailHog/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ disassembler jojosch ];
|
2017-06-24 16:05:34 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|