all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Toni Reina <areina@riseup.net>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add Mozilla Fira Mono font
Date: Sat, 26 Nov 2016 15:28:36 +0100	[thread overview]
Message-ID: <87oa12uxgr.fsf@riseup.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

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


[-- Attachment #2: Fira Mono patch --]
[-- Type: text/x-diff, Size: 2447 bytes --]

From 9487025f2b6101ce4436d60b49d58f6ba439cd97 Mon Sep 17 00:00:00 2001
From: Toni Reina <areina@riseup.net>
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 © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016 Toni Reina <areina@riseup.net>
 ;;;
 ;;; 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 been
 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_mono_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)))
-- 
2.10.2


             reply	other threads:[~2016-11-26 14:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-26 14:28 Toni Reina [this message]
2016-11-26 22:10 ` [PATCH] gnu: Add Mozilla Fira Mono font Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2015-11-17 20:04 Roel Janssen
2015-11-18 11:21 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oa12uxgr.fsf@riseup.net \
    --to=areina@riseup.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.