* [PATCH 2/3] gnu: Add font-iosevka.
@ 2017-02-09 21:29 Alex Griffin
2017-02-10 16:02 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Alex Griffin @ 2017-02-09 21:29 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 190 bytes --]
This patch adds Iosevka, a coders' font written in a node.js DSL. It
could be built from source if Guix had better JavaScript support, but
for now it just copies TTF files.
--
Alex Griffin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-font-iosevka.patch --]
[-- Type: text/x-patch; name="0002-gnu-Add-font-iosevka.patch", Size: 2305 bytes --]
From 04963f88c6d2a89300856fbf4b32654691ec3855 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Thu, 9 Feb 2017 14:26:41 -0600
Subject: [PATCH 2/3] gnu: Add font-iosevka.
* gnu/packages/fonts.scm (font-iosevka): New variable.
---
gnu/packages/fonts.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index fdda81c2b..d74c1fb2b 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1068,3 +1068,37 @@ vector graphics.")
"Comic Neue is a font that attempts to create a respectable casual
typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
(license license:silofl1.1)))
+
+(define-public font-iosevka
+ (package
+ (name "font-iosevka")
+ (version "1.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/be5invis/Iosevka/releases/download/v"
+ version "/iosevka-pack-" version ".zip"))
+ (sha256
+ (base32
+ "0d8prdk7s5z94sdfd0y92cvqq531yqrlg7hnadbnhd7fs9jqr5hj"))))
+ (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/truetype"))
+ (source (assoc-ref %build-inputs "source"))
+ (unzip (string-append (assoc-ref %build-inputs "unzip")
+ "/bin/unzip")))
+ (mkdir-p font-dir)
+ (system* unzip "-d" font-dir source)))))
+ (native-inputs `(("unzip" ,unzip)))
+ (home-page "https://be5invis.github.io/Iosevka/")
+ (synopsis "Coders' typeface, built from code")
+ (description
+ "Iosevka is a slender monospace sans-serif or slab-serif typeface inspired
+by Pragmata Pro, M+, and PF DIN Mono, designed to be the ideal font for
+programming. Iosevka is completely generated from its source code.")
+ (license (list license:silofl1.1 ; build artifacts (i.e. the fonts)
+ license:bsd-3)))) ; supporting code
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/3] gnu: Add font-iosevka.
2017-02-09 21:29 [PATCH 2/3] gnu: Add font-iosevka Alex Griffin
@ 2017-02-10 16:02 ` Ludovic Courtès
2017-02-10 16:19 ` Alex Griffin
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-02-10 16:02 UTC (permalink / raw)
To: Alex Griffin; +Cc: guix-devel
Alex Griffin <a@ajgrf.com> skribis:
> This patch adds Iosevka, a coders' font written in a node.js DSL. It
> could be built from source if Guix had better JavaScript support, but
> for now it just copies TTF files.
Any idea how many Node packages we’re missing to make that happen?
> From 04963f88c6d2a89300856fbf4b32654691ec3855 Mon Sep 17 00:00:00 2001
> From: Alex Griffin <a@ajgrf.com>
> Date: Thu, 9 Feb 2017 14:26:41 -0600
> Subject: [PATCH 2/3] gnu: Add font-iosevka.
>
> * gnu/packages/fonts.scm (font-iosevka): New variable.
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/3] gnu: Add font-iosevka.
2017-02-10 16:02 ` Ludovic Courtès
@ 2017-02-10 16:19 ` Alex Griffin
0 siblings, 0 replies; 3+ messages in thread
From: Alex Griffin @ 2017-02-10 16:19 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
On Fri, Feb 10, 2017, at 10:02 AM, Ludovic Courtès wrote:
> Any idea how many Node packages we’re missing to make that happen?
It only depends on 10 packages directly, but I have no idea how many
recursive dependencies that would mean. Probably a lot.
--
Alex Griffin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-10 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 21:29 [PATCH 2/3] gnu: Add font-iosevka Alex Griffin
2017-02-10 16:02 ` Ludovic Courtès
2017-02-10 16:19 ` Alex Griffin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).