From ffe5f4d14f3d789ca7e3f64b631dae30e3464107 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 20 Jul 2023 17:04:28 -0400 Subject: [PATCH] quarto: set RETICULATE_PYTHON when rWrapper is set so that reticulate can find Python Fixes #244575. --- pkgs/development/libraries/quarto/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/quarto/default.nix b/pkgs/development/libraries/quarto/default.nix index 3674bd86420c..d8f961c5a69a 100644 --- a/pkgs/development/libraries/quarto/default.nix +++ b/pkgs/development/libraries/quarto/default.nix @@ -65,9 +65,12 @@ stdenv.mkDerivation (final: { --set-default QUARTO_DART_SASS ${lib.getExe dart-sass} \ --set-default QUARTO_TYPST ${lib.getExe typst} \ ${lib.optionalString (rWrapper != null) "--set-default QUARTO_R ${rWithPackages}/bin/R"} \ + ${ + lib.optionalString (python3 != null) "--set-default QUARTO_PYTHON ${pythonWithPackages}/bin/python3" + } \ ${lib.optionalString ( - python3 != null - ) "--set-default QUARTO_PYTHON ${pythonWithPackages}/bin/python3"} + rWrapper != null + ) "--set-default RETICULATE_PYTHON ${pythonWithPackages.interpreter}"} ''; installPhase = ''