about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpjotrp <pjotr.public01@thebird.nl>2026-10-13 16:08:07 +0000
committerpjotrp <pjotr.public01@thebird.nl>2026-10-13 16:08:07 +0000
commit046bd63ba775c655aca0a7c795cdadeed25e506a (patch)
treef775c54ac59c3dbe48668bc4b3c4fe7281078dcf
parent3e23f7502fd56bca1d703d8ba89bfeffbd5c798e (diff)
downloadguix-bioinformatics-046bd63ba775c655aca0a7c795cdadeed25e506a.tar.gz
julia: package Latexify and Plots
Add julia-latexify (0.15.18) and julia-plots (1.25.12).  Everything else
Plots needs was already packaged (RecipesPipeline, UnicodeFun,
Formatting, GR, FFMPEG, GeometryBasics, ...), so only Latexify was
missing.  Add Plots to the shared environment.

Verified in the container: Plots, Optim, Distributions, Roots, QuadGK,
PrettyTables, LaTeXStrings and PlutoUI all import from the shared load
path.
-rw-r--r--gn/packages/julia.scm55
1 files changed, 53 insertions, 2 deletions
diff --git a/gn/packages/julia.scm b/gn/packages/julia.scm
index e152bf2..e63cf19 100644
--- a/gn/packages/julia.scm
+++ b/gn/packages/julia.scm
@@ -2006,12 +2006,62 @@ use by nonlinear solvers.")
 constrained optimization (Nelder-Mead, BFGS, gradient descent, ...).")
     (license license:expat)))
 
+(define-public julia-latexify
+  (package
+    (name "julia-latexify")
+    (version "0.15.18")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/korsbo/Latexify.jl")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "04nsb20y151s9f5022qz4av6h1qzg0w22wsbwhd7hnjp61crk15q"))))
+    (build-system julia-build-system)
+    (arguments (list #:tests? #f)) ; test-only deps are not packaged
+    (propagated-inputs (list julia-formatting julia-latexstrings julia-macrotools
+                             julia-orderedcollections julia-requires))
+    (home-page "https://github.com/korsbo/Latexify.jl")
+    (synopsis "Generate LaTeX equations from Julia expressions")
+    (description "Latexify turns Julia expressions and arrays into LaTeX.")
+    (license license:expat)))
+
+(define-public julia-plots
+  (package
+    (name "julia-plots")
+    (version "1.25.12")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/JuliaPlots/Plots.jl")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1i48frwr0jq2nglmxv7ljxsbs897ck1wnsgdym39v9a90d3nbp0v"))))
+    (build-system julia-build-system)
+    (arguments (list #:tests? #f)) ; test-only deps are not packaged
+    (propagated-inputs (list julia-contour julia-ffmpeg julia-fixedpointnumbers
+                             julia-gr julia-geometrybasics julia-json
+                             julia-latexify julia-measures julia-nanmath
+                             julia-plotthemes julia-plotutils julia-recipesbase
+                             julia-recipespipeline julia-reexport julia-requires
+                             julia-scratch julia-showoff julia-statsbase
+                             julia-unicodefun julia-unzip))
+    (home-page "https://github.com/JuliaPlots/Plots.jl")
+    (synopsis "Powerful convenience plotting for Julia")
+    (description "Plots is a plotting API and toolset for Julia, with GR as
+the default backend.")
+    (license license:expat)))
+
 ;; The Julia packages the bundled notebooks need, for the shared
 ;; environment (see pluto-notebook).  Plots and CairoMakie are not here
 ;; yet: they pull much larger closures (GR/Makie).
 (define %pluto-notebook-julia-deps
   (list julia-plutoui julia-distributions julia-roots julia-latexstrings
-        julia-quadgk julia-prettytables julia-optim))
+        julia-quadgk julia-prettytables julia-optim julia-plots))
 
 (define %pluto-notebook-loadpath
   ;; share/julia/loadpath of every Julia package in the dependency closure
@@ -2101,7 +2151,8 @@ constrained optimization (Nelder-Mead, BFGS, gradient descent, ...).")
                 julia-latexstrings
                 julia-quadgk
                 julia-prettytables
-                julia-optim)))
+                julia-optim
+                julia-plots)))
     (home-page "https://git.genenetwork.org/")
     (synopsis "Serve Pluto notebooks with PlutoSliderServer")
     (description "A Pluto notebook server: runs a directory of Pluto