mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #211941 from minijackson/quarto-override-deps
quarto: allow overriding extra R and Python packages
This commit is contained in:
commit
bede0015fd
@ -7,8 +7,10 @@
|
||||
, nodePackages
|
||||
, rWrapper
|
||||
, rPackages
|
||||
, extraRPackages ? []
|
||||
, makeWrapper
|
||||
, python3
|
||||
, extraPythonPackages ? ps: with ps; []
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -42,8 +44,8 @@ stdenv.mkDerivation rec {
|
||||
--prefix QUARTO_PANDOC : ${pandoc}/bin/pandoc \
|
||||
--prefix QUARTO_ESBUILD : ${esbuild}/bin/esbuild \
|
||||
--prefix QUARTO_DART_SASS : ${nodePackages.sass}/bin/sass \
|
||||
--prefix QUARTO_R : ${rWrapper.override { packages = [ rPackages.rmarkdown]; }}/bin/R \
|
||||
--prefix QUARTO_PYTHON : ${python3.withPackages (ps: with ps; [ jupyter ipython ])}/bin/python3
|
||||
--prefix QUARTO_R : ${rWrapper.override { packages = [ rPackages.rmarkdown ] ++ extraRPackages; }}/bin/R \
|
||||
--prefix QUARTO_PYTHON : ${python3.withPackages (ps: with ps; [ jupyter ipython ] ++ (extraPythonPackages ps))}/bin/python3
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
Loading…
Reference in New Issue
Block a user