all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#48713: emacs-all-the-icons missing all the icons
@ 2021-05-28  9:40 Leo Prikler
  2021-11-14 15:13 ` bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts Liliana Marie Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Prikler @ 2021-05-28  9:40 UTC (permalink / raw)
  To: 48713

Pardon the pun in the title.

The problem:
  emacs-all-the-icons has a subdirectory fonts, that it wants installed
  to share/fonts (currently, they are installed to its own fonts 
  directory).  Some of them are vendored, but at least one seems to be
  genuinely their own.

Proposed solution:
  Make it, so that emacs-all-the-icons installs its own fonts to 
  share/data and copies vendored fonts from inputs where packages can 
  be found.

Note, that this won't work for a setup with all-the-icons in a non-
default profile or ad-hoc environment (compare #31403).  Would everyone
be fine with the proposed solution or is there a better one?

Regards,
Leo





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts.
  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
  2022-02-19 19:55   ` Liliana Marie Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Liliana Marie Prikler @ 2021-11-14 15:13 UTC (permalink / raw)
  To: 48713

* 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






^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts.
  2021-11-14 15:13 ` bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts Liliana Marie Prikler
@ 2022-02-19 19:55   ` Liliana Marie Prikler
  0 siblings, 0 replies; 3+ messages in thread
From: Liliana Marie Prikler @ 2022-02-19 19:55 UTC (permalink / raw)
  To: 48713-done

Am Sonntag, dem 14.11.2021 um 16:13 +0100 schrieb Liliana Marie
Prikler:
> * 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.
Also propagated material icons and pushed.

Cheers!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-19 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-28  9:40 bug#48713: emacs-all-the-icons missing all the icons Leo Prikler
2021-11-14 15:13 ` bug#48713: [PATCH] gnu: emacs-all-the-icons: Install all the fonts Liliana Marie Prikler
2022-02-19 19:55   ` Liliana Marie Prikler

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.