msmtp: support not bringing in the additional scripts

Changed files
+9 -6
pkgs
applications
networking
msmtp
+9 -6
pkgs/applications/networking/msmtp/default.nix
···
, libsecret
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
+
, withScripts ? true
}:
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