Merge pull request #315348 from b-rodrigues/fix_quarto

rPackages.quarto: use replace-fail instead of replace and update pattern
This commit is contained in:
Justin Bedő
2024-05-31 09:38:58 +10:00
committed by GitHub
+1 -1
View File
@@ -1303,7 +1303,7 @@ let
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ pkgs.quarto ];
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')"
--replace-fail "Sys.getenv(\"QUARTO_PATH\", unset = NA_character_)" "Sys.getenv(\"QUARTO_PATH\", unset = '${lib.getBin pkgs.quarto}/bin/quarto')"
'';
});