Merge pull request #267180 from gaelreyrol/mailpit-update-1.10.0

mailpit: 1.9.9 -> 1.10.0
This commit is contained in:
Weijia Wang 2023-11-16 23:49:47 +01:00 committed by GitHub
commit 8a04a88c5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,17 +7,19 @@
, npmHooks
, fetchFromGitHub
, fetchNpmDeps
, testers
, mailpit
}:
let
version = "1.9.9";
version = "1.10.0";
src = fetchFromGitHub {
owner = "axllent";
repo = "mailpit";
rev = "v${version}";
hash = "sha256-WPfr1LHOgOFsF2g3junJ0km0gOk/LC52jekJ8BXlqP0=";
hash = "sha256-MrhTgyY89rU2EQILRSFJk8U7QWaoUf2p83ksFjA7xOM=";
};
# Separate derivation, because if we mix this in buildGoModule, the separate
@ -29,7 +31,7 @@ let
npmDeps = fetchNpmDeps {
inherit src;
hash = "sha256-RaXD+WfNywItveKzc+KWOw38H1EZ2yukgbMrtOfPSJc=";
hash = "sha256-r4yv2qImIlNMPJagz5i1sxqBDnFAucc2kDUmjGktM6A=";
};
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
@ -49,7 +51,7 @@ buildGoModule {
pname = "mailpit";
inherit src version;
vendorHash = "sha256-akt72aBoiQKp1Hxf3NgzSmfgmsnjpheIh62lPCTyHBs=";
vendorHash = "sha256-TXa97oOul9cf07uNGdIoxIM++da5HBFeoh05LaJzQTA=";
CGO_ENABLED = 0;
@ -59,6 +61,12 @@ buildGoModule {
cp -r ${ui} server/ui/dist
'';
passthru.tests.version = testers.testVersion {
inherit version;
package = mailpit;
command = "mailpit version";
};
meta = with lib; {
description = "An email and SMTP testing tool with API for developers";
homepage = "https://github.com/axllent/mailpit";