about summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/vscodium.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/vscode/vscodium.nix')
-rw-r--r--pkgs/applications/editors/vscode/vscodium.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vscode/vscodium.nix b/pkgs/applications/editors/vscode/vscodium.nix
index dabd413632db..bab8de8b594a 100644
--- a/pkgs/applications/editors/vscode/vscodium.nix
+++ b/pkgs/applications/editors/vscode/vscodium.nix
@@ -22,7 +22,7 @@ let
     armv7l-linux = "1cp739i5002j2kmdh3rhh7p88gyvjrfwcr430g5dvhdp7mgkbwn1";
   }.${system} or throwSystem;
 
-  sourceRoot = if stdenv.isDarwin then "" else ".";
+  sourceRoot = lib.optionalString (!stdenv.isDarwin) ".";
 in
   callPackage ./generic.nix rec {
     inherit sourceRoot commandLineArgs useVSCodeRipgrep;