Subject: [PATCH] gnu: Add font-julia-mono.

From: Konrad Hinsen <[email-masked]>
Date: Wed, 29 Sep 2021 16:23:44 +0200

* gnu/packages/fonts.scm (font-julia-mono): New variable.
---
 gnu/packages/fonts.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 23531def98..e40ec28e71 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2267,3 +2267,30 @@ road signage typefaces, adapted for on-screen display and user interfaces.
 Overpass includes proportional and monospace variants.")
     (license (list license:silofl1.1
                    license:lgpl2.1))))
+
+(define-public font-julia-mono
+  (package
+    (name "font-julia-mono")
+    (version "0.043")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/cormullion/juliamono/releases/download/"
+                    "v" version "/JuliaMono-ttf.tar.gz"))
+              (sha256
+               (base32
+                "0vb7n9yqgasnxzps13ckklay5bla6b0i79pzmfqvjms1r37079gh"))))
+    (build-system font-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'unpack
+                    (lambda* (#:key source #:allow-other-keys)
+                      (mkdir "source")
+                      (chdir "source")
+                      (invoke "tar" "xzf" source))))))
+    (native-inputs `(("tar" ,tar)))
+    (home-page "https://juliamono.netlify.app/")
+    (synopsis "JuliaMono typeface")
+    (description "The JuliaMono font is a monospaced font with good Unicode
+coverage, in particular for the needs of scientific and technical computing.")
+    (license license:silofl1.1)))
-- 
2.33.0