Merge pull request #242829 from stephank/feat/mailpit

mailpit: init at 1.7.1

authored by Pol Dellaiera and committed by GitHub 903d10e1 79390459

+50
+46
pkgs/servers/mail/mailpit/default.nix
···
··· 1 + { lib 2 + , buildGoModule 3 + , nodejs 4 + , python3 5 + , libtool 6 + , npmHooks 7 + , fetchFromGitHub 8 + , fetchNpmDeps 9 + }: 10 + 11 + buildGoModule rec { 12 + pname = "mailpit"; 13 + version = "1.7.1"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "axllent"; 17 + repo = "mailpit"; 18 + rev = "v${version}"; 19 + hash = "sha256-jT9QE0ikp9cJlT8qtfPPjKOUuqWyQk94D3UbkyaGXa8="; 20 + }; 21 + 22 + vendorHash = "sha256-XBYIO7fdo5EahJB7EcAuY9SGKZb8dsvoJHp/D5LO5Qo="; 23 + 24 + npmDeps = fetchNpmDeps { 25 + inherit src; 26 + hash = "sha256-6VCs8125fTJkZW+eZgK56j7ccK8tcGhIXiq2HkYp4XM="; 27 + }; 28 + 29 + nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ]; 30 + 31 + preBuild = '' 32 + npm run package 33 + ''; 34 + 35 + CGO_ENABLED = 0; 36 + 37 + ldflags = [ "-s" "-w" "-X github.com/axllent/mailpit/config.Version=${version}" ]; 38 + 39 + meta = with lib; { 40 + description = "An email and SMTP testing tool with API for developers"; 41 + homepage = "https://github.com/axllent/mailpit"; 42 + changelog = "https://github.com/axllent/mailpit/releases/tag/v${version}"; 43 + maintainers = with maintainers; [ stephank ]; 44 + license = licenses.mit; 45 + }; 46 + }
+4
pkgs/top-level/all-packages.nix
··· 10221 ); 10222 bubblemail = callPackage ../applications/networking/mailreaders/bubblemail { }; 10223 10224 mailsend = callPackage ../tools/networking/mailsend { }; 10225 10226 mailutils = callPackage ../tools/networking/mailutils {
··· 10221 ); 10222 bubblemail = callPackage ../applications/networking/mailreaders/bubblemail { }; 10223 10224 + mailpit = callPackage ../servers/mail/mailpit { 10225 + libtool = if stdenv.isDarwin then darwin.cctools else libtool; 10226 + }; 10227 + 10228 mailsend = callPackage ../tools/networking/mailsend { }; 10229 10230 mailutils = callPackage ../tools/networking/mailutils {