msmtp: add updateScript, 1.8.25 -> 1.8.26 & specify that msmtpq is a wrapper (#343831)
This commit is contained in:
@@ -20,18 +20,21 @@
|
||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
||||
, systemd
|
||||
, withScripts ? true
|
||||
, gitUpdater
|
||||
, binlore
|
||||
, msmtp
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) getBin getExe optionals;
|
||||
|
||||
version = "1.8.25";
|
||||
version = "1.8.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marlam";
|
||||
repo = "msmtp";
|
||||
rev = "msmtp-${version}";
|
||||
hash = "sha256-UZKUpF/ZwYPM2rPDudL1O8e8LguKJh9sTcJRT3vgsf4=";
|
||||
hash = "sha256-MV3fzjjyr7qZw/BbKgsSObX+cxDDivI+0ZlulrPFiWM=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
@@ -117,6 +120,7 @@ let
|
||||
fix."$MSMTP" = [ "msmtp" ];
|
||||
fake.external = [ "ping" ]
|
||||
++ optionals (!withSystemd) [ "systemd-cat" ];
|
||||
keep.source = [ "~/.msmtpqrc" ];
|
||||
};
|
||||
|
||||
msmtp-queue = {
|
||||
@@ -135,5 +139,14 @@ if withScripts then
|
||||
name = "msmtp-${version}";
|
||||
inherit version meta;
|
||||
paths = [ binaries scripts ];
|
||||
passthru = { inherit binaries scripts; };
|
||||
passthru = {
|
||||
inherit binaries scripts src;
|
||||
# msmtpq forwards most of its arguments to msmtp [1].
|
||||
#
|
||||
# [1]: <https://github.com/marlam/msmtp/blob/msmtp-1.8.26/scripts/msmtpq/msmtpq#L301>
|
||||
binlore.out = binlore.synthesize msmtp ''
|
||||
wrapper bin/msmtpq bin/msmtp
|
||||
'';
|
||||
updateScript = gitUpdater { rev-prefix = "msmtp-"; };
|
||||
};
|
||||
} else binaries
|
||||
|
||||
Reference in New Issue
Block a user