diff --git a/pkgs/applications/networking/msmtp/default.nix b/pkgs/applications/networking/msmtp/default.nix index 15cd369ae335..c4f430bf75a3 100644 --- a/pkgs/applications/networking/msmtp/default.nix +++ b/pkgs/applications/networking/msmtp/default.nix @@ -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]: + binlore.out = binlore.synthesize msmtp '' + wrapper bin/msmtpq bin/msmtp + ''; + updateScript = gitUpdater { rev-prefix = "msmtp-"; }; + }; } else binaries