vscode: disable ripgrep patching on macOS

useVSCodeRipgrep = false interferes with macOS 13's notarization enforcement
and doesn't allow the app to start. Setting it to stdenv.isDarwin by default
fixes the package for general use while preserving the option to patch ripgrep
on older versions of macOS if required by someone's particular use case.
This commit is contained in:
Morgan Wolfe 2023-05-29 13:24:02 -07:00
parent 0ad8dd6297
commit 8769a90f90
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ stdenv, lib, callPackage, fetchurl
, isInsiders ? false
, commandLineArgs ? ""
, useVSCodeRipgrep ? false
, useVSCodeRipgrep ? stdenv.isDarwin
}:
let

View File

@ -1,4 +1,4 @@
{ lib, stdenv, callPackage, fetchurl, nixosTests, commandLineArgs ? "", useVSCodeRipgrep ? false }:
{ lib, stdenv, callPackage, fetchurl, nixosTests, commandLineArgs ? "", useVSCodeRipgrep ? stdenv.isDarwin }:
let
inherit (stdenv.hostPlatform) system;