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

View file

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