aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/fonts.scm
diff options
context:
space:
mode:
authorJosé Miguel Sánchez García <jmi2k@openmailbox.org>2017-02-12 12:26:42 +0100
committerLudovic Courtès <ludo@gnu.org>2017-02-13 15:55:55 +0100
commit824e5fe6404e6ae42ffab3270326b4e6da9c8223 (patch)
tree04cfa49f4303c26a28cb83b0540e8760c7f3a983 /gnu/packages/fonts.scm
parentbe4f149d29764ae8206deda230ab6125907669b4 (diff)
downloadpatches-824e5fe6404e6ae42ffab3270326b4e6da9c8223.tar
patches-824e5fe6404e6ae42ffab3270326b4e6da9c8223.tar.gz
gnu: Add font-google-material-design-icons.
* gnu/packages/font.scm (font-google-material-design-icons): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/fonts.scm')
-rw-r--r--gnu/packages/fonts.scm48
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 4105449c89..ce07accbf2 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1142,3 +1142,51 @@ Holmes type foundry, released under the same license as the Go programming
language. It includes a set of proportional, sans-serif fonts, and a set of
monospace, slab-serif fonts.")
(license (package-license go-1.4)))))
+
+(define-public font-google-material-design-icons
+ (package
+ (name "font-google-material-design-icons")
+ (version "3.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/google/material-design-icons/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("tar" ,tar)
+ ("gzip" ,gzip)))
+ (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"))
+ (font-filename "MaterialIcons-Regular.ttf")
+ (src-ttf-file (string-append "material-design-icons-"
+ ,version
+ "/iconfont/"
+ font-filename))
+ (dest-ttf-file (string-append font-dir font-filename))
+ (gzip (assoc-ref %build-inputs "gzip"))
+ (tar (assoc-ref %build-inputs "tar")))
+ (setenv "PATH" (string-append gzip "/bin:"
+ tar "/bin:"))
+ (system* "tar" "xf" source)
+ (mkdir-p font-dir)
+ (copy-file src-ttf-file dest-ttf-file)))))
+ (home-page "http://google.github.io/material-design-icons")
+ (synopsis "Icon font of Google Material Design icons")
+ (description
+ "Material design system icons are simple, modern, friendly, and sometimes
+quirky. Each icon is created using our design guidelines to depict in simple
+and minimal forms the universal concepts used commonly throughout a UI.
+Ensuring readability and clarity at both large and small sizes, these icons
+have been optimized for beautiful display on all common platforms and display
+resolutions.")
+ (license license:asl2.0)))