about summary refs log tree commit diff
path: root/pkgs/development/r-modules
diff options
context:
space:
mode:
authornviets <nathan.g.viets@gmail.com>2023-02-16 22:25:35 -0500
committerGitHub <noreply@github.com>2023-02-17 03:25:35 +0000
commitdcd759fe65b0c85dc60a0c9d3cb7d071d44a973f (patch)
tree25000680c37a856321e1f190efc189189390f37a /pkgs/development/r-modules
parent4f9a955c5adbe39aa265d1e2a7e31539a9e8024a (diff)
downloadnixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar.gz
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar.bz2
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar.lz
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar.xz
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.tar.zst
nixlib-dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f.zip
rPackages.quarto: add quarto dependency
Diffstat (limited to 'pkgs/development/r-modules')
-rw-r--r--pkgs/development/r-modules/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix
index 1d61428960ab..f287605aa8f2 100644
--- a/pkgs/development/r-modules/default.nix
+++ b/pkgs/development/r-modules/default.nix
@@ -1016,6 +1016,13 @@ let
       '';
     });
 
+    quarto = old.quarto.overrideDerivation (attrs: {
+      postPatch = ''
+        substituteInPlace "R/quarto.R" \
+          --replace "path_env <- Sys.getenv(\"QUARTO_PATH\", unset = NA)" "path_env <- Sys.getenv(\"QUARTO_PATH\", unset = '${lib.getBin pkgs.quarto}/bin/quarto')"
+      '';
+    });
+
     s2 = old.s2.overrideDerivation (attrs: {
       PKGCONFIG_CFLAGS = "-I${pkgs.openssl.dev}/include";
       PKGCONFIG_LIBS = "-Wl,-rpath,${lib.getLib pkgs.openssl}/lib -L${lib.getLib pkgs.openssl}/lib -lssl -lcrypto";