depot/third_party/nixpkgs/pkgs/servers/mail/mailhog/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

32 lines
812 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "MailHog";
version = "1.0.1";
src = fetchFromGitHub {
owner = "mailhog";
repo = "MailHog";
rev = "v${version}";
hash = "sha256-flxEp9iXLLm/FPP8udlnpbHQpGnqxAhgyOIUUJAJgog=";
};
postPatch = ''
go mod init github.com/mailhog/MailHog
'';
vendorHash = null;
ldflags = [ "-s" "-X main.version=${version}" ];
passthru.tests = { inherit (nixosTests) mailhog; };
meta = with lib; {
description = "Web and API based SMTP testing";
mainProgram = "MailHog";
homepage = "https://github.com/mailhog/MailHog";
changelog = "https://github.com/mailhog/MailHog/releases/tag/v${version}";
maintainers = with maintainers; [ disassembler jojosch ];
license = licenses.mit;
};
}