Skip to content

Commit

Permalink
[backport release 24.05] vscode: fix darwin build (#347728)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby285271 authored Oct 10, 2024
2 parents 1dfc201 + 9f688ac commit 255bc4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/applications/editors/vscode/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ in
'' + (
let
vscodeRipgrep =
if stdenv.isDarwin then
"Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg"
if stdenv.hostPlatform.isDarwin then
if lib.versionAtLeast version "1.94.0" then
"Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg"
else
"Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg"
else
"resources/app/node_modules/@vscode/ripgrep/bin/rg";
in
Expand Down

0 comments on commit 255bc4f

Please sign in to comment.