From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toni Reina Subject: [PATCH] gnu: Add Mozilla Fira Mono font Date: Sat, 26 Nov 2016 15:28:36 +0100 Message-ID: <87oa12uxgr.fsf@riseup.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAe09-0006IS-Jj for guix-devel@gnu.org; Sat, 26 Nov 2016 09:30:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAe06-0004Mz-Em for guix-devel@gnu.org; Sat, 26 Nov 2016 09:30:49 -0500 Received: from mx1.riseup.net ([198.252.153.129]:49252) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAe06-0004MI-2c for guix-devel@gnu.org; Sat, 26 Nov 2016 09:30:46 -0500 Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 4791F1A1B2E for ; Sat, 26 Nov 2016 14:30:43 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hello, One year ago, Roel Janssen sent a patch adding this font but finally it wasn't applied. I created a new one, building the fonts from source, and it includes all fira mono family: Bold, Medium and Regular. I'm downloading the sources from carrois.com website because from github isn't possible to download only the Fira Mono font, Fira Sans is also included. I checked the nix package and they are doing the same. Cheers, Toni --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-Mozilla-Fira-Mono-font.patch Content-Description: Fira Mono patch Content-Transfer-Encoding: quoted-printable >From 9487025f2b6101ce4436d60b49d58f6ba439cd97 Mon Sep 17 00:00:00 2001 From: Toni Reina Date: Sat, 26 Nov 2016 15:12:22 +0100 Subject: [PATCH] gnu: Add Mozilla Fira Mono font. * gnu/packages/fonts.scm (font-fira-mono): New variable. --- gnu/packages/fonts.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 009efd2..5967315 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -13,6 +13,7 @@ ;;; Copyright =C2=A9 2016 Dmitry Nikolaev ;;; Copyright =C2=A9 2016 Efraim Flashner ;;; Copyright =C2=A9 2016 Marius Bakke +;;; Copyright =C2=A9 2016 Toni Reina ;;; ;;; This file is part of GNU Guix. ;;; @@ -898,3 +899,38 @@ powerline support.") "Source Code Pro is a set of monospaced OpenType fonts that have be= en designed to work well in user interface environments.") (license license:silofl1.1))) + +(define-public font-fira-mono + (package + (name "font-fira-mono") + (version "3.206") + (source (origin + (method url-fetch) + (uri (string-append "https://carrois.com/downloads/fira_mo= no_3_2/" + "FiraMonoFonts" + (string-replace-substring version "." = "") + ".zip")) + (sha256 + (base32 + "1z65x0dw5dq6rs6p9wyfrir50rlh95vgzsxr8jcd40nqazw4jhpi"))= )) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip")) + (font-dir (string-append %output "/share/fonts/opentype")= )) + (mkdir-p font-dir) + (system* unzip + "-j" + (assoc-ref %build-inputs "source") + "*.otf" + "-d" font-dir))))) + (native-inputs + `(("unzip" ,unzip))) + (home-page "http://mozilla.github.io/Fira/") + (synopsis "Mozilla's monospace font") + (description "Mozilla's new typeface, used in Firefox OS.") + (license license:silofl1.1))) --=20 2.10.2 --=-=-=--