Skip to content

Commit

Permalink
vscode: fix darwin build
Browse files Browse the repository at this point in the history
It seems that the ripgrep path has changed in 1.94.0.
  • Loading branch information
tjni authored and drupol committed Oct 10, 2024
1 parent 1365af7 commit 9f688ac
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 9f688ac

Please sign in to comment.