Subject: [bug#60684] [PATCH 1/1] gnu: Add font-google-noto-emoji.

From: Fredrik Salomonsson <[email-masked]>
Date: Mon, 9 Jan 2023 01:05:04 +0000

* gnu/packages/fonts.scm (font-google-noto-emoji): New variable.
---
 gnu/packages/fonts.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 95e99d5a73..c489e9891c 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -939,6 +939,36 @@ (define-public font-google-noto
 display all Unicode symbols.")
     (license license:silofl1.1)))
 
+(define-public font-google-noto-emoji
+  (package
+    (name "font-google-noto-emoji")
+    (version "2.038")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/googlefonts/noto-emoji/archive/refs/tags/v"
+                       version".tar.gz"))
+       (sha256
+        (base32
+         "15bi08nv5fwssm2cmhqd2mdj07dk1kirdvkxxpy2xs516fbv7n27"))))
+    (build-system font-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-unsupported
+            (lambda* _
+              (delete-file "fonts/NotoColorEmoji_WindowsCompatible.ttf")
+              (delete-file "fonts/Noto-COLRv1-noflags.ttf")
+              (delete-file "fonts/Noto-COLRv1.ttf"))))))
+    (home-page "https://fonts.google.com/noto/specimen/Noto+Color+Emoji")
+    (synopsis "Font for rendering color emoji characters")
+    (description
+     "This package provides the color emoji font from the Google Noto font
+family.")
+    (license license:silofl1.1)))
+
 (define-public font-google-noto-sans-cjk
   (package
     (name "font-google-noto-sans-cjk")
-- 
2.38.1