tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rstudio: fix server node patching
Justin Bedo
2 years ago
45b1d202
a12a3714
+32
-1
2 changed files
expand all
collapse all
unified
split
pkgs
applications
editors
rstudio
default.nix
use-system-node.patch
+3
pkgs/applications/editors/rstudio/default.nix
···
145
145
--replace '@node@' ${nodejs} \
146
146
--replace './lib/quarto' ${quartoSrc}
147
147
148
148
+
substituteInPlace src/cpp/conf/rsession-dev.conf \
149
149
+
--replace '@node@' ${nodejs}
150
150
+
148
151
substituteInPlace src/cpp/core/libclang/LibClang.cpp \
149
152
--replace '@libclang@' ${llvmPackages.libclang.lib} \
150
153
--replace '@libclang.so@' ${llvmPackages.libclang.lib}/lib/libclang.so
+29
-1
pkgs/applications/editors/rstudio/use-system-node.patch
···
1
1
+
diff --git a/src/cpp/conf/rsession-dev.conf b/src/cpp/conf/rsession-dev.conf
2
2
+
index d18362b..98cdd4c 100644
3
3
+
--- a/src/cpp/conf/rsession-dev.conf
4
4
+
+++ b/src/cpp/conf/rsession-dev.conf
5
5
+
@@ -39,7 +39,7 @@ external-mathjax-path=${RSTUDIO_DEPENDENCIES_MATHJAX_DIR}
6
6
+
external-pandoc-path=${RSTUDIO_DEPENDENCIES_PANDOC_DIR}
7
7
+
external-quarto-path=${RSTUDIO_DEPENDENCIES_QUARTO_DIR}
8
8
+
external-libclang-path=${RSTUDIO_DEPENDENCIES_DIR}/common/libclang
9
9
+
-external-node-path=${RSTUDIO_DEPENDENCIES_DIR}/common/node/16.14.0/bin/node
10
10
+
+external-node-path=@node@/bin/node
11
11
+
12
12
+
# enable copilot
13
13
+
copilot-enabled=1
14
14
+
diff --git a/src/cpp/server/CMakeLists.txt b/src/cpp/server/CMakeLists.txt
15
15
+
index 30dd638..cb4a645 100644
16
16
+
--- a/src/cpp/server/CMakeLists.txt
17
17
+
+++ b/src/cpp/server/CMakeLists.txt
18
18
+
@@ -250,10 +250,6 @@ if (UNIX AND NOT APPLE)
19
19
+
DESTINATION ${RSERVER_SYSTEMD_DIR})
20
20
+
21
21
+
# install node
22
22
+
- install(
23
23
+
- DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/node/${RSTUDIO_NODE_VERSION}/"
24
24
+
- DESTINATION "${RSTUDIO_INSTALL_BIN}/node"
25
25
+
- USE_SOURCE_PERMISSIONS)
26
26
+
27
27
+
elseif(APPLE)
28
28
+
1
29
diff --git a/src/gwt/build.xml b/src/gwt/build.xml
2
2
-
index 83e9433..f1ee63d 100644
30
30
+
index 033d605..f1ee63d 100644
3
31
--- a/src/gwt/build.xml
4
32
+++ b/src/gwt/build.xml
5
33
@@ -87,29 +87,7 @@