Subject: [PATCH] gnu: Add font-libertinus.
From: Tim Van den Langenbergh <[email-masked]>
To: [email-masked]
Date: Tue, 7 Jul 2020 17:18:21 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

I am rather fond of the Libertinus Mono font for Emacs, as I like my Monospace fonts to have Serifs. As others may like the font as well I have created a patch to add it to the fonts package.

This being the first patch I have ever submitted to Guix I'm not entirely sure I did everything right, I followed the Submitting Patches part of the manual as close as I could, but I may have made a mistake somewhere, so feel free to correct me where needed.

I have included the patch generated by git format-patch as an attachment.

Sincerely yours,

-Tim Van den Langenbergh

From 52ffe88453d3da391a00107f4143d4dd057683d4 Mon Sep 17 00:00:00 2001
From: Tim Van den Langenbergh <[email-masked]>
Date: Tue, 7 Jul 2020 16:38:41 +0200
Subject: [PATCH] gnu: Add font-libertinus.

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

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index ed9b634bc3..eafdee4182 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -384,6 +384,27 @@ Biolinum is available in both Regular and Bold weights.")
     ;; The fonts are released under either of these licenses.
     (license (list license:gpl2+ license:silofl1.1))))

+(define-public font-libertinus
+  (package
+    (name "font-libertinus")
+    (version "6.12")
+    (source (origin
+	      (method git-fetch)
+	      (uri (string-append "https://github.com/alerque/libertinus/"
+                                  "commit/"
+                                  "800155085d4a1592dc6e76b34cd625794cd0fcdf"))
+	      (sha256
+	       (base32 "1mj0d84k1x15hsgksca0qjhc3mmzyaqaqa2vyrbb6s96ycsfsgq3"))))
+    (build-system font-build-system)
+    (home-page "https://github.com/alerque/libertinus")
+    (synopsis "Font family based on Linux Libertine")
+    (description "The Libertinus font family, a fork of Linux Libertine and
+Biolinum with OpenType math.  The family consists of a Serif typeface, forked
+from Linux Libertine; a Sans Serif typeface, forked from Linux Biolinum; a
+Monospace typeface, forked from Linux Libertine Mono; and an OpenType math font,
+for OpenType math-capable applications like LuaTeX or XeTeX.")
+    (license license:silofl1.1)))
+
 (define-public font-terminus
   (package
     (name "font-terminus")
--
2.27.0