Files
nixpkgs/pkgs/by-name/ma/mailhog/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.0 KiB
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=";
};
patches = [
# Generate by go mod init github.com/mailhog/MailHog && go mod tidy && go get github.com/mailhog/mhsendmail@9e70164f299c9e06af61402e636f5bbdf03e7dbb
./0001-Add-go.mod-go.sum.patch
];
vendorHash = "sha256-YfqC8MEdiLcucOaXOsLI9H4NDQ/4T0newb6q7v0uDbw=";
deleteVendor = true;
ldflags = [
"-s"
"-X main.version=${version}"
];
passthru.tests = {
inherit (nixosTests) mailhog;
};
meta = {
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 lib.maintainers; [
disassembler
jojosch
];
license = lib.licenses.mit;
};
}