all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Dvorsak <eric@dvorsak.fr>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] gnu: Add font-inconsolata
Date: Mon, 17 Aug 2015 01:04:27 +0200	[thread overview]
Message-ID: <1439766267-15096-2-git-send-email-eric@dvorsak.fr> (raw)
In-Reply-To: <1439766267-15096-1-git-send-email-eric@dvorsak.fr>

* gnu/packages/fonts.scm (font-inconsolata): New variable.
---
 gnu/packages/fonts.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index f26a599..b0eac93 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -34,6 +34,34 @@
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages pkg-config))
 
+(define-public font-incosolata
+  (package
+    (name "font-inconsolata")
+    (version "0.80")
+    (source (origin
+              (method url-fetch)
+              (uri "http://www.levien.com/type/myfonts/Inconsolata.otf")
+              (sha256
+               (base32
+                "06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m"))))
+    (build-system trivial-build-system)
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder (begin
+                   (use-modules (guix build utils))
+                   (let ((font-dir (string-append %output
+                                                  "/share/fonts/opentype"))
+                         (source (assoc-ref %build-inputs "source")))
+                     (mkdir-p font-dir)
+                     (copy-file source
+                                (string-append font-dir "/" "inconsolata.otf"))))))
+    (native-inputs `(("source" ,source)))
+    (home-page "http://levien.com/type/myfonts/inconsolata.html")
+    (synopsis "Monospace font")
+    (description "A monospace font, designed for code listings and the like,
+in print.  With attention to detail for high resolution rendering.")
+    (license license:silofl1.1)))
+
 (define-public font-ubuntu
   (package
     (name "font-ubuntu")
-- 
2.4.3

  reply	other threads:[~2015-08-16 23:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16 23:04 [PATCH 1/2] gnu: Add font-ubuntu Eric Dvorsak
2015-08-16 23:04 ` Eric Dvorsak [this message]
2015-08-20 14:42   ` [PATCH 2/2] gnu: Add font-inconsolata Ludovic Courtès
2015-08-20 14:40 ` [PATCH 1/2] gnu: Add font-ubuntu Ludovic Courtès
2015-08-21 22:49   ` Mark H Weaver
2015-08-23 21:07     ` Ludovic Courtès
2015-08-23 22:30       ` Mark H Weaver
2015-08-24 22:18         ` 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=1439766267-15096-2-git-send-email-eric@dvorsak.fr \
    --to=eric@dvorsak.fr \
    --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.