Merge pull request #267180 from gaelreyrol/mailpit-update-1.10.0
mailpit: 1.9.9 -> 1.10.0
This commit is contained in:
commit
8a04a88c5a
1 changed files with 12 additions and 4 deletions
|
@ -7,17 +7,19 @@
|
||||||
, npmHooks
|
, npmHooks
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchNpmDeps
|
, fetchNpmDeps
|
||||||
|
, testers
|
||||||
|
, mailpit
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
version = "1.9.9";
|
version = "1.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "axllent";
|
owner = "axllent";
|
||||||
repo = "mailpit";
|
repo = "mailpit";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-WPfr1LHOgOFsF2g3junJ0km0gOk/LC52jekJ8BXlqP0=";
|
hash = "sha256-MrhTgyY89rU2EQILRSFJk8U7QWaoUf2p83ksFjA7xOM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Separate derivation, because if we mix this in buildGoModule, the separate
|
# Separate derivation, because if we mix this in buildGoModule, the separate
|
||||||
|
@ -29,7 +31,7 @@ let
|
||||||
|
|
||||||
npmDeps = fetchNpmDeps {
|
npmDeps = fetchNpmDeps {
|
||||||
inherit src;
|
inherit src;
|
||||||
hash = "sha256-RaXD+WfNywItveKzc+KWOw38H1EZ2yukgbMrtOfPSJc=";
|
hash = "sha256-r4yv2qImIlNMPJagz5i1sxqBDnFAucc2kDUmjGktM6A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
|
nativeBuildInputs = [ nodejs python3 libtool npmHooks.npmConfigHook ];
|
||||||
|
@ -49,7 +51,7 @@ buildGoModule {
|
||||||
pname = "mailpit";
|
pname = "mailpit";
|
||||||
inherit src version;
|
inherit src version;
|
||||||
|
|
||||||
vendorHash = "sha256-akt72aBoiQKp1Hxf3NgzSmfgmsnjpheIh62lPCTyHBs=";
|
vendorHash = "sha256-TXa97oOul9cf07uNGdIoxIM++da5HBFeoh05LaJzQTA=";
|
||||||
|
|
||||||
CGO_ENABLED = 0;
|
CGO_ENABLED = 0;
|
||||||
|
|
||||||
|
@ -59,6 +61,12 @@ buildGoModule {
|
||||||
cp -r ${ui} server/ui/dist
|
cp -r ${ui} server/ui/dist
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.version = testers.testVersion {
|
||||||
|
inherit version;
|
||||||
|
package = mailpit;
|
||||||
|
command = "mailpit version";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An email and SMTP testing tool with API for developers";
|
description = "An email and SMTP testing tool with API for developers";
|
||||||
homepage = "https://github.com/axllent/mailpit";
|
homepage = "https://github.com/axllent/mailpit";
|
||||||
|
|
Loading…
Reference in a new issue