From 5d52b63f639099e028f4b6199707f4b28c9595ac Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sat, 20 Jun 2026 10:23:50 +0200 Subject: [PATCH] Added Quarto to packages. --- packages.nix | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/packages.nix b/packages.nix index 98b4248..8bf3345 100644 --- a/packages.nix +++ b/packages.nix @@ -9,7 +9,27 @@ nixpkgs.config.allowUnfree = true; # List packages installed in system profile. - environment.systemPackages = with pkgs; [ + environment.systemPackages = let + myPythonPackages = ps: with ps; [ + pandas + statsmodels + scikit-learn + sympy + ]; + myRPackages = with pkgs.rPackages; [ + reticulate # wanted by quarto to execute Python when using R. + # any other RPackages - you can reuse this list for R and RStudio + ]; + patchedQuarto = (pkgs.quarto.override { + extraPythonPackages = myPythonPackages; + extraRPackages = myRPackages; + }).overrideAttrs (oldAttrs: { # Remove this overrideAttrs patch when fixed. See https://github.com/NixOS/nixpkgs/issues/519484#issuecomment-4667477454 + postPatch = (oldAttrs.postPatch or "") + '' + substituteInPlace bin/quarto.js \ + --replace-fail "syntax-highlighting" "highlight-style" + ''; + }); + in with pkgs; [ # System gsettings-desktop-schemas vulkan-tools @@ -42,6 +62,14 @@ gcc-arm-embedded python315 arduino-ide + #### next generation of Rmarkdown for Python, Julia, R, and JS: + patchedQuarto + #### Your command-line Python: + (python3.withPackages (myPythonPackages)) + #### R and RStudio: + (rWrapper.override {packages = myRPackages; }) + (rstudioWrapper.override { packages = myRPackages; }) + # Communication (element-desktop.overrideAttrs (oldAttrs: {