vsce/python: fix pythonUseFixed

This commit is contained in:
Michael Hoang
2024-12-06 17:41:07 +11:00
parent 55d15ad12a
commit 33edad5d40
@@ -48,7 +48,7 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
+ lib.optionalString pythonUseFixed ''
# Patch `packages.json` so that nix's *python* is used as default value for `python.pythonPath`.
substituteInPlace "./package.json" \
--replace "\"default\": \"python\"" "\"default\": \"${python3.interpreter}\""
--replace-fail "\"default\":\"python\"" "\"default\":\"${python3.interpreter}\""
'';
passthru.updateScript = writeScript "update" ''