From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 48713@debbugs.gnu.org
Subject: bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts.
Date: Sun, 14 Nov 2021 16:13:01 +0100 [thread overview]
Message-ID: <b35b5937074bfa429686331bcbe1baf2bf358552.camel@gmail.com> (raw)
In-Reply-To: <6034fecaa0ec23963c0d591de2f3df0a178f99f6.camel@student.tugraz.at>
* gnu/packages/emacs-xyz.scm (emacs-all-the-icons)[#:include]: Drop fonts.
[#:phases]<install-fonts>: Install them directly to ‘/share’.
[propagated-inputs]: Add font-awesome.
---
gnu/packages/emacs-xyz.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b305bb5386..b3f7b6daa6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -150,6 +150,7 @@ (define-module (gnu packages emacs-xyz)
#:use-module (gnu packages djvu)
#:use-module (gnu packages ebook)
#:use-module (gnu packages emacs)
+ #:use-module (gnu packages fonts)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages golang)
#:use-module (gnu packages guile)
@@ -22420,13 +22421,27 @@ (define-public emacs-all-the-icons
(base32 "0lwgvgnqf7vihglm0c5bwsxbl4x7f641289cji5s7jwy2dbsqk7g"))))
(build-system emacs-build-system)
(arguments
- `(#:include '("\\.el$" "^data/" "^fonts/")
+ `(#:include '("\\.el$" "^data/")
;; Compiling "test/" fails with "Symbol’s value as variable is void:
;; all-the-icons--root-code". Ignoring tests.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-fonts
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((fonts (string-append (assoc-ref outputs "out")
+ "/share/fonts")))
+ (mkdir-p fonts)
+ (with-directory-excursion "fonts"
+ (install-file "all-the-icons.ttf" fonts)
+ (install-file "file-icons.ttf" fonts)
+ (install-file "material-design-icons.ttf" fonts)
+ (install-file "octicons.ttf" fonts)
+ (install-file "weathericons.ttf" fonts))))))
#:exclude '("^test/")
#:tests? #f))
(propagated-inputs
- `(("f" ,emacs-f)
+ `(("font-awesome" ,font-awesome)
+ ("f" ,emacs-f)
("memoize" ,emacs-memoize)))
(home-page "https://github.com/domtronn/all-the-icons.el")
(synopsis "Collect icon fonts and propertize them within Emacs")
--
2.33.1
next prev parent reply other threads:[~2021-11-14 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 9:40 bug#48713: emacs-all-the-icons missing all the icons Leo Prikler
2021-11-14 15:13 ` Liliana Marie Prikler [this message]
2022-02-19 19:55 ` bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts Liliana Marie Prikler
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b35b5937074bfa429686331bcbe1baf2bf358552.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=48713@debbugs.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 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).