Added Quarto to packages.
This commit is contained in:
parent
794593f8e8
commit
5d52b63f63
30
packages.nix
30
packages.nix
|
|
@ -9,7 +9,27 @@
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# List packages installed in system profile.
|
# 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
|
# System
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
|
|
@ -42,6 +62,14 @@
|
||||||
gcc-arm-embedded
|
gcc-arm-embedded
|
||||||
python315
|
python315
|
||||||
arduino-ide
|
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
|
# Communication
|
||||||
(element-desktop.overrideAttrs (oldAttrs: {
|
(element-desktop.overrideAttrs (oldAttrs: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue