From f0cd0a8158b1a6d54301dbbcd6c7c83a0cc4f501 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 10 Jan 2024 01:14:45 -0500 Subject: [PATCH] vesktop: add withSystemVencord --- pkgs/by-name/ve/vesktop/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ve/vesktop/package.nix b/pkgs/by-name/ve/vesktop/package.nix index 3882a23a5a15..e29007a1876c 100644 --- a/pkgs/by-name/ve/vesktop/package.nix +++ b/pkgs/by-name/ve/vesktop/package.nix @@ -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;