Subject: [PATCH] gnu: Add font-adwaita.
From: Kurome <[email-masked]>
To: [email-masked]
Cc: Kurome <[email-masked]>
Date: Sun, 13 Apr 2025 15:33:36 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/fonts.scm (font-adwaita): New variable.

Change-Id: Icbc77669f67f8cbf3d84e573e29dc9c418497f88
---
 gnu/packages/fonts.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 85f8a5f31b..a0d6106784 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -111,6 +111,45 @@ (define-module (gnu packages fonts)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages xorg))
 
+(define-public font-adwaita
+  (package
+    (name "font-adwaita")
+    (version "48.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.gnome.org/GNOME/adwaita-fonts/")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sk6kb6v4ims3jzyfh71mx2kmwv55idr2yd1xgxlqc9lk59zhymd"))))
+    (build-system font-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Install font licenses instead of the buildsystem license.
+          (replace 'install-license-files
+            (lambda _
+              (let ((doc-dir (string-append #$output "/share/doc/"
+                                            #$name "-" #$version)))
+                (define (install-license form)
+                  (install-file (string-append form "/LICENSE.md")
+                                (string-append doc-dir "/" form)))
+                (install-license "sans")
+                (install-license "mono")))))))
+    (home-page "https://gitlab.gnome.org/GNOME/adwaita-fonts/")
+    (synopsis
+     "Variation of Inter, and Adwaita Mono, Iosevka customized to match Inter.")
+    (description
+     "This package provides Adwaita Fonts, a variation of Inter, and Adwaita
+ Mono, Iosevka customized to match Inter.")
+    ;; Buildsystem and shell scripts are under the GPL, but fonts themselves are
+    ;; under OFL-1.1.
+    ;; https://gitlab.gnome.org/GNOME/adwaita-fonts/-/issues/14
+    (license license:silofl1.1)))
+
 (define-public font-arapey
   (let ((commit  "28fa45c7f31afe62f577b0b857570ab0326b9113")
         (revision "1"))
-- 
2.49.0