msmtp: support not bringing in the additional scripts

This commit is contained in:
Peter Hoeg 2023-11-20 11:48:19 +01:00 committed by Bjørn Forsman
parent c4376a9f3a
commit 1156cd9e9b

@ -19,6 +19,7 @@
, libsecret
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
, withScripts ? true
}:
let
@ -124,9 +125,11 @@ let
};
in
symlinkJoin {
name = "msmtp-${version}";
inherit version meta;
paths = [ binaries scripts ];
passthru = { inherit binaries scripts; };
}
if withScripts then
symlinkJoin
{
name = "msmtp-${version}";
inherit version meta;
paths = [ binaries scripts ];
passthru = { inherit binaries scripts; };
} else binaries