acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / ma / mailhog / package.nix
blob8d73256cf5ae248589bf38608acfcb3479bfc064
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nixosTests,
6 }:
8 buildGoModule rec {
9   pname = "MailHog";
10   version = "1.0.1";
12   src = fetchFromGitHub {
13     owner = "mailhog";
14     repo = "MailHog";
15     rev = "v${version}";
16     hash = "sha256-flxEp9iXLLm/FPP8udlnpbHQpGnqxAhgyOIUUJAJgog=";
17   };
19   patches = [
20     # Generate by go mod init github.com/mailhog/MailHog && go mod tidy
21     ./0001-Add-go.mod-go.sum.patch
22   ];
24   vendorHash = "sha256-yYMgNpthBwmDeD4pgnVj88OJWiPNWuwzxDzC6eejabU=";
26   deleteVendor = true;
28   ldflags = [
29     "-s"
30     "-X main.version=${version}"
31   ];
33   passthru.tests = {
34     inherit (nixosTests) mailhog;
35   };
37   meta = with lib; {
38     description = "Web and API based SMTP testing";
39     mainProgram = "MailHog";
40     homepage = "https://github.com/mailhog/MailHog";
41     changelog = "https://github.com/mailhog/MailHog/releases/tag/v${version}";
42     maintainers = with maintainers; [
43       disassembler
44       jojosch
45     ];
46     license = licenses.mit;
47   };