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