Merge pull request #242829 from stephank/feat/mailpit

mailpit: init at 1.7.1
This commit is contained in:
Pol Dellaiera 2023-07-12 08:41:40 +02:00 committed by GitHub
commit 903d10e1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildGoModule
, nodejs
, python3
, libtool
, npmHooks
, fetchFromGitHub
, fetchNpmDeps
}:
buildGoModule rec {
pname = "mailpit";
version = "1.7.1";
src = fetchFromGitHub {
owner = "axllent";
repo = "mailpit";
rev = "v${version}";
hash = "sha256-jT9QE0ikp9cJlT8qtfPPjKOUuqWyQk94D3UbkyaGXa8=";
};
vendorHash = "sha256-XBYIO7fdo5EahJB7EcAuY9SGKZb8dsvoJHp/D5LO5Qo=";
npmDeps = fetchNpmDeps {
inherit src;
hash = "sha256-6VCs8125fTJkZW+eZgK56j7ccK8tcGhIXiq2HkYp4XM=";
};
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
preBuild = ''
npm run package
'';
CGO_ENABLED = 0;
ldflags = [ "-s" "-w" "-X github.com/axllent/mailpit/config.Version=${version}" ];
meta = with lib; {
description = "An email and SMTP testing tool with API for developers";
homepage = "https://github.com/axllent/mailpit";
changelog = "https://github.com/axllent/mailpit/releases/tag/v${version}";
maintainers = with maintainers; [ stephank ];
license = licenses.mit;
};
}

View File

@ -10221,6 +10221,10 @@ with pkgs;
); );
bubblemail = callPackage ../applications/networking/mailreaders/bubblemail { }; bubblemail = callPackage ../applications/networking/mailreaders/bubblemail { };
mailpit = callPackage ../servers/mail/mailpit {
libtool = if stdenv.isDarwin then darwin.cctools else libtool;
};
mailsend = callPackage ../tools/networking/mailsend { }; mailsend = callPackage ../tools/networking/mailsend { };
mailutils = callPackage ../tools/networking/mailutils { mailutils = callPackage ../tools/networking/mailutils {