Unverified Commit 43382341 authored by superherointj's avatar superherointj Committed by GitHub
Browse files

Merge pull request #308311 from Pandapip1/init-vscode-extensions-reditorsupport-r

vscode-extensions.reditorsupport.r: init 2.8.2
parents dcee79f8 b40da1f0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -15277,6 +15277,12 @@
    githubId = 1788628;
    name = "pandaman";
  };
  pandapip1 = {
    email = "gavinnjohn@gmail.com";
    github = "Pandapip1";
    githubId = 45835846;
    name = "Gavin John";
  };
  panicgh = {
    email = "nbenes.gh@xandea.de";
    github = "panicgh";
+2 −0
Original line number Diff line number Diff line
@@ -3446,6 +3446,8 @@ let
        };
      };

      reditorsupport.r = callPackage ./reditorsupport.r { };

      reloadedextensions.reloaded-cpp = buildVscodeMarketplaceExtension {
        mktplcRef = {
          name = "reloaded-cpp";
+42 −0
Original line number Diff line number Diff line
{
  lib,
  vscode-utils,
  jq,
  moreutils,
  python311Packages,
  R,
  rPackages,
}:

vscode-utils.buildVscodeMarketplaceExtension {
  mktplcRef = {
    name = "r";
    publisher = "reditorsupport";
    version = "2.8.2";
    hash = "sha256-FPL/JjW452KRchcQ0iHXRJarZXvS3B8PvZhXjf3rMhQ=";
  };
  nativeBuildInputs = [
    jq
    moreutils
  ];
  buildInputs = [
    python311Packages.radian
    R
    rPackages.languageserver
  ];
  postInstall = ''
    cd "$out/$installPrefix"
    jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json
    jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json
    jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe python311Packages.radian}"' package.json | sponge package.json
    jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe python311Packages.radian}"' package.json | sponge package.json
  '';
  meta = {
    changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";
    description = "A Visual Studio Code extension for the R programming language";
    downloadPage = "https://marketplace.visualstudio.com/items?itemName=REditorSupport.r";
    homepage = "https://github.com/REditorSupport/vscode-R";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.pandapip1 ];
  };
}