nixpkgs/pkgs/applications/editors/rstudio/use-system-node.patch
Goetz 1f95c49331
RStudio: 1.4.1717 -> 2022.02.3+492 (#177021)
rstudio: 1.4.1717 -> 2022.02.3+492

The old version does not compile with gcc11. Also the used nixos-22.05
libraries (R interpreter) have changed their interfaces that have to be
also patched. Updating RStudio is useful.

* Remove Quarto patch

Follow review in
https://github.com/NixOS/nixpkgs/pull/177021#pullrequestreview-1007625773

* Fix not FHS paths

Create explicit nix path replacement of hard coded FHS paths for pandoc and nodejs.
2022-06-17 16:08:22 +02:00

29 lines
1.0 KiB
Diff

--- a/src/gwt/build.xml
+++ b/src/gwt/build.xml
@@ -84,23 +84,7 @@
</target>
<!-- panmirror typescript library -->
- <!-- ensure version matches RSTUDIO_NODE_VERSION -->
- <property name="node.version" value="14.17.5"/>
- <property name="node.dir" value="../../dependencies/common/node/${node.version}"/>
- <condition property="node.bin" value="../../../${node.dir}/bin/node">
- <not>
- <os family="windows" />
- </not>
- </condition>
- <condition property="node.bin" value="${node.dir}/node.exe">
- <os family="windows" />
- </condition>
-
- <!-- use node from /opt/rstudio-tools if installed (typical for Docker) -->
- <available
- property="node.bin"
- value="/opt/rstudio-tools/dependencies/common/node/${node.version}/bin/node"
- file="/opt/rstudio-tools/dependencies/common/node/${node.version}/bin/node"/>
+ <property name="node.bin" value="@node@/bin/node"/>
<property name="panmirror.dir" value="./panmirror/src/editor"/>
<property name="panmirror.build.dir" value="./www/js/panmirror"/>