vesktop: add withSystemVencord

This commit is contained in:
seth 2024-01-10 01:14:45 -05:00
parent 9bf6c987c2
commit f0cd0a8158
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -19,6 +19,9 @@
, nodePackages
, speechd
, withTTS ? true
# Enables the use of vencord from nixpkgs instead of
# letting vesktop manage it's own version
, withSystemVencord ? true
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vesktop";
@ -86,9 +89,8 @@ stdenv.mkDerivation (finalAttrs: {
];
patches = [
(substituteAll { inherit vencord; src = ./use_system_vencord.patch; })
./disable_update_checking.patch
];
] ++ lib.optional withSystemVencord (substituteAll { inherit vencord; src = ./use_system_vencord.patch; });
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;