GNU bug report logs - #44575
[PATCH] gnu: fonts.scm: Add nerd-fonts

Previous Next

Package: guix-patches;

Reported by: Barnabas Beres <beresbarnus03 <at> gmail.com>

Date: Wed, 11 Nov 2020 13:48:01 UTC

Severity: normal

Tags: patch

Merged with 44476, 44477, 44478

To reply to this bug, email your comments to 44575 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#44575; Package guix-patches. (Wed, 11 Nov 2020 13:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Barnabas Beres <beresbarnus03 <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 11 Nov 2020 13:48:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barnabas Beres <beresbarnus03 <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Barnabas Beres <beresbarnus03 <at> gmail.com>
Subject: [PATCH] gnu: fonts.scm: Add nerd-fonts
Date: Wed, 11 Nov 2020 14:47:13 +0100
* gnu/packages/fonts.scm (nerd-fonts): New variable
---
 gnu/packages/fonts.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 396e89a1fd..67cdf8335a 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2009,3 +2009,36 @@ operators and special symbols.")
 is a stylish type with a polished yet relaxed feel.  Its versatility makes it
 suitable for a wide range of uses.")
       (license license:silofl1.1))))
+
+(define-public font-nerd-fonts
+  (package
+    (name "font-nerd-fonts")
+    (version "2.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ryanoasis/nerd-fonts")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1la79y16k9rwcl2zsxk73c0kgdms2ma43kpjfqnq5jlbfdj0niwg"))))
+    (build-system font-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'make-files-writable
+           (lambda _
+             (for-each
+              make-file-writable
+              (find-files "." ".*\\.(otf|otc|ttf|ttc)$"))
+             #t)))))
+    (home-page "https://www.nerdfonts.com/")
+    (synopsis "Iconic font aggregator, collection, and patcher")
+    (description
+     "Nerd Fonts patches developer targeted fonts with a high number
+of glyphs (icons). Specifically to add a high number of extra glyphs
+from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons,
+and others.")
+    (license license:expat)))
-- 
2.29.2





Merged 44476 44477 44478 44575. Request was from John Kehayias <john.kehayias <at> protonmail.com> to control <at> debbugs.gnu.org. (Wed, 18 Aug 2021 20:30:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#44575; Package guix-patches. (Wed, 18 Aug 2021 20:33:02 GMT) Full text and rfc822 format available.

Message #10 received at 44575 <at> debbugs.gnu.org (full text, mbox):

From: John Kehayias <john.kehayias <at> protonmail.com>
To: "44575 <at> debbugs.gnu.org" <44575 <at> debbugs.gnu.org>
Subject: [PATCH] gnu: fonts.scm: Add nerd-fonts
Date: Wed, 18 Aug 2021 20:32:34 +0000
Hello,

(Sorry, only saw the duplicated patches after I reopened an older one, hopefully now all merged and open. Let's continue on the newest bug #. Forgive the spam.)

Doesn't look like this patch was ever merged or reviewed. I would love to have nerd-fonts in Guix, though it may be very large to have all the fonts together. We could alternatively have packages for each font, maybe all derived from the complete package (though ideally you'd want to avoid downloading everything for each font). Or at least split off the large ones, like Noto?

Thoughts on this package?

Thanks,
John




Information forwarded to guix-patches <at> gnu.org:
bug#44575; Package guix-patches. (Tue, 14 Jun 2022 16:57:01 GMT) Full text and rfc822 format available.

Message #13 received at 44575 <at> debbugs.gnu.org (full text, mbox):

From: benoit <at> benoitj.ca
To: 44575 <at> debbugs.gnu.org
Subject: splitting
Date: Tue, 14 Jun 2022 12:56:18 -0400
Hi,

thanks for posting this patch.

I myself use nerd-fonts FiraCode and cant see a benefit to install >1GB 
of fonts when all I would like to get is just one of the variant.

I do think this should be split by fonts that people find useful. Nerd 
fonts has a long list of patched fonts, I think this effort could focus 
on the most popular ones to start with.

To go around this, I modified this patch to be firacode specific with a 
url-fetch method, a url pointing to 
https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip, 
and installed this  font-nerd-fonts-firacode guix package.

It does work for me.

what do you think?

Benoit




This bug report was last modified 2 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.