From patchwork Fri Aug 12 04:23:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Benoit Joly X-Patchwork-Id: 41568 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9955327BBEA; Fri, 12 Aug 2022 05:29:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5547127BBE9 for ; Fri, 12 Aug 2022 05:29:12 +0100 (BST) Received: from localhost ([::1]:50062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMMIJ-0002Ez-Hh for patchwork@mira.cbaines.net; Fri, 12 Aug 2022 00:29:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMMIB-0002Eq-0o for guix-patches@gnu.org; Fri, 12 Aug 2022 00:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMMIA-0003JG-NS for guix-patches@gnu.org; Fri, 12 Aug 2022 00:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMMIA-0004j4-Ch for guix-patches@gnu.org; Fri, 12 Aug 2022 00:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57149] [PATCH] gnu: Add font-nerd-fonts-firacode Resent-From: Benoit Joly Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Aug 2022 04:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57149@debbugs.gnu.org Cc: Benoit Joly X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166027853018144 (code B ref -1); Fri, 12 Aug 2022 04:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Aug 2022 04:28:50 +0000 Received: from localhost ([127.0.0.1]:55318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMMHx-0004iY-RX for submit@debbugs.gnu.org; Fri, 12 Aug 2022 00:28:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:37348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMMHs-0004iO-8u for submit@debbugs.gnu.org; Fri, 12 Aug 2022 00:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMMHr-0002DO-Vq for guix-patches@gnu.org; Fri, 12 Aug 2022 00:28:44 -0400 Received: from mail-108-mta93.mxroute.com ([136.175.108.93]:36933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMMHp-0003Ec-S2 for guix-patches@gnu.org; Fri, 12 Aug 2022 00:28:43 -0400 Received: from filter006.mxroute.com ([140.82.40.27] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta93.mxroute.com (ZoneMTA) with ESMTPSA id 182904b0b3f0000261.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Fri, 12 Aug 2022 04:23:33 +0000 X-Zone-Loop: 69e16f0426492d4a55d31e6586c39514329310e0a9fc X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=benoitj.ca; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=LLDtA0EkSA6N0CDGbYRqh4Y3YHarbPJvooRw1jXJO4s=; b=P PiCz+ShGY6zfhSPw3hHmumku+BjhhmNnTF+dLY//jz9+QWgEdkQdvN7kDICwFuAMQWif4mPqdAuXT 8jxHOjInJrchGzoIpNYLcjXbg2LicK0H/m+GQuWihJUXqkvBKfOtWrE/RKrbAUN4OquYcS/VgCWEe cuR+P6Y4qQSeVkNuGR6Qfg05NOGboOtI6YNFZpuKnxE7JKAdIeGp9EdoFFe1NJTctSFZdZS0ah1am vKNDYa5ut8+rmbQdTZhGwfVgRnnZiDqLvNWoSx9m6t1hUtUg67VxMKXlWO0C+lW2Y30ZLm5hocmZT S7pRcKZZXRCWO86wFfFmR55qlRMCfnmZw==; From: Benoit Joly Date: Fri, 12 Aug 2022 00:23:13 -0400 Message-Id: <20220812042313.19198-1-benoit@benoitj.ca> MIME-Version: 1.0 X-Authenticated-Id: benoit@benoitj.ca Received-SPF: pass client-ip=136.175.108.93; envelope-from=benoit@benoitj.ca; helo=mail-108-mta93.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fonts (font-nerd-fonts-firacode): New variable. --- gnu/packages/fonts.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 20b55bce96..0ce9ba8414 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -51,6 +51,7 @@ ;;; Copyright © 2021 Liliana Marie Prikler ;;; Copyright © 2022 Jose G Perez Taveras ;;; Copyright © 2022 Hilton Chain +;;; Copyright © 2022 Benoit Joly ;;; ;;; This file is part of GNU Guix. ;;; @@ -2795,3 +2796,37 @@ (define-public font-chiron-hei-hk Kong variant of Adobe’s Source Han Sans. The font aims at providing a modern, region-agnostic glyph set adopting the “modern” glyph style that is similar to prevalent typefaces in Traditional Chinese regions."))) + +(define-public font-nerd-fonts-fira-code + (package + (name "font-nerd-fonts-fira-code") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://github.com/ryanoasis/nerd-fonts/releases/download/v" + version + "/FiraCode.zip")) + (sha256 + (base32 + "1rx7zrkq0584k6hrh6dx30xrnz5nq379xyw73pfd4gxaxnh9mpi1")))) + (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 "Nerd fonts variant of FiraCode font") + (description + "Nerd fonts variant of FiraCode font. Nerd Fonts is a project that 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:silofl1.1)))