diff options
| -rw-r--r-- | guix-science/packages/rstudio.scm | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/guix-science/packages/rstudio.scm b/guix-science/packages/rstudio.scm index cbdd6e6..779a08b 100644 --- a/guix-science/packages/rstudio.scm +++ b/guix-science/packages/rstudio.scm | |||
| @@ -247,19 +247,19 @@ web browser.") | |||
| 247 | 247 | ||
| 248 | (define-public rstudio-server | 248 | (define-public rstudio-server |
| 249 | ;; Latest commit of the guix-science-v<version> branch. | 249 | ;; Latest commit of the guix-science-v<version> branch. |
| 250 | (let ((commit "547dcf861cac0253a8abb52c135e44e02ba407a1")) | 250 | (let ((commit "cd7011dce393115d3a7c3db799dda4b1c7e88711")) |
| 251 | (package | 251 | (package |
| 252 | (name "rstudio-server") | 252 | (name "rstudio-server") |
| 253 | (version "2023.06.1+524") | 253 | (version "2023.09.1+494") |
| 254 | (source (origin | 254 | (source (origin |
| 255 | (method git-fetch) | 255 | (method git-fetch) |
| 256 | (uri (git-reference | 256 | (uri (git-reference |
| 257 | (url "https://github.com/guix-science/rstudio.git") | 257 | (url "https://github.com/rstudio/rstudio.git") |
| 258 | (commit commit))) | 258 | (commit commit))) |
| 259 | (file-name (git-file-name "rstudio" version)) | 259 | (file-name (git-file-name "rstudio" version)) |
| 260 | (sha256 | 260 | (sha256 |
| 261 | (base32 | 261 | (base32 |
| 262 | "09ndvzdql6vyr2rcm979ibq5hwwzqzsw4fijf4vwcd77lvkvhwmr")) | 262 | "1njvvpbg7pcvh6ffqy1ixc85ingxg2g5daz4sd6b8y5pww9rzvyi")) |
| 263 | (modules '((guix build utils))) | 263 | (modules '((guix build utils))) |
| 264 | (snippet | 264 | (snippet |
| 265 | '(for-each delete-file-recursively | 265 | '(for-each delete-file-recursively |
| @@ -300,6 +300,24 @@ web browser.") | |||
| 300 | (substitute* "src/gwt/build.xml" | 300 | (substitute* "src/gwt/build.xml" |
| 301 | (("target name=\"panmirror\"" m) | 301 | (("target name=\"panmirror\"" m) |
| 302 | (string-append m " if=\"false\""))) | 302 | (string-append m " if=\"false\""))) |
| 303 | (let ((node-version #$(package-version (this-package-input "node")))) | ||
| 304 | (substitute* "src/gwt/build.xml" | ||
| 305 | (("name=\"node.version\" value=\"16.20.2\"") | ||
| 306 | (string-append "name=\"node.version\" value=\"" | ||
| 307 | node-version "\""))) | ||
| 308 | (substitute* '("src/node/CMakeNodeTools.txt" | ||
| 309 | "CMakeGlobals.txt") | ||
| 310 | (("RSTUDIO_NODE_VERSION \"16.20.2\"") | ||
| 311 | (string-append "RSTUDIO_NODE_VERSION \"" node-version "\""))) | ||
| 312 | (substitute* "package/linux/make-package" | ||
| 313 | (("RSTUDIO_NODE_VERSION=16.20.2") | ||
| 314 | (string-append "RSTUDIO_NODE_VERSION=" node-version ""))) | ||
| 315 | (substitute* "src/cpp/server/CMakeLists.txt" | ||
| 316 | (("\"\\$\\{RSTUDIO_DEPENDENCIES_DIR\\}/common/node/\\$\\{RSTUDIO_NODE_VERSION\\}/\"") | ||
| 317 | (string-append "\"" #$(this-package-input "node") "\""))) | ||
| 318 | (substitute* "src/cpp/session/SessionOptions.cpp" | ||
| 319 | (("\"../../dependencies/common/node/16.20.2\"") | ||
| 320 | (string-append "\"" #$(this-package-input "node") "\"")))) | ||
| 303 | (substitute* "src/cpp/session/CMakeLists.txt" | 321 | (substitute* "src/cpp/session/CMakeLists.txt" |
| 304 | (("\\$\\{RSTUDIO_DEPENDENCIES_DIR\\}/mathjax-27") | 322 | (("\\$\\{RSTUDIO_DEPENDENCIES_DIR\\}/mathjax-27") |
| 305 | (assoc-ref inputs "mathjax")) | 323 | (assoc-ref inputs "mathjax")) |
| @@ -376,6 +394,7 @@ web browser.") | |||
| 376 | ("jq" ,jq))) | 394 | ("jq" ,jq))) |
| 377 | (inputs | 395 | (inputs |
| 378 | `(("boost" ,boost) | 396 | `(("boost" ,boost) |
| 397 | ("node" ,node-lts) | ||
| 379 | ("zlib" ,zlib) | 398 | ("zlib" ,zlib) |
| 380 | ("linux-pam" ,linux-pam) | 399 | ("linux-pam" ,linux-pam) |
| 381 | ("yaml-cpp" ,yaml-cpp) | 400 | ("yaml-cpp" ,yaml-cpp) |
