From dcd759fe65b0c85dc60a0c9d3cb7d071d44a973f Mon Sep 17 00:00:00 2001 From: nviets Date: Thu, 16 Feb 2023 22:25:35 -0500 Subject: [PATCH] rPackages.quarto: add quarto dependency --- pkgs/development/r-modules/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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";