Added Quarto to packages.

This commit is contained in:
Ulysse Cura 2026-06-20 10:23:50 +02:00
parent 794593f8e8
commit 5d52b63f63
1 changed files with 29 additions and 1 deletions

View File

@ -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: {