vscode-extensions.reditorsupport.r: install languageserver correctly (#419610)

authored by Pol Dellaiera and committed by GitHub 3d109879 d01373ef

+4 -6
+4 -6
pkgs/applications/editors/vscode/extensions/reditorsupport.r/default.nix
··· 3 vscode-utils, 4 jq, 5 moreutils, 6 R, 7 - rPackages, 8 radian, 9 }: 10 11 vscode-utils.buildVscodeMarketplaceExtension { ··· 19 jq 20 moreutils 21 ]; 22 - buildInputs = [ 23 - radian 24 - R 25 - rPackages.languageserver 26 - ]; 27 postInstall = '' 28 cd "$out/$installPrefix" 29 jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 30 jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 31 jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe radian}"' package.json | sponge package.json 32 jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe radian}"' package.json | sponge package.json 33 ''; 34 meta = { 35 changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";
··· 3 vscode-utils, 4 jq, 5 moreutils, 6 + languageserver ? rPackages.languageserver, 7 R, 8 radian, 9 + 10 + rPackages, 11 }: 12 13 vscode-utils.buildVscodeMarketplaceExtension { ··· 21 jq 22 moreutils 23 ]; 24 postInstall = '' 25 cd "$out/$installPrefix" 26 jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 27 jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json 28 jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe radian}"' package.json | sponge package.json 29 jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe radian}"' package.json | sponge package.json 30 + jq '.contributes.configuration.properties."r.libPaths".default = [ "${languageserver}/library" ]' package.json | sponge package.json 31 ''; 32 meta = { 33 changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";