diff options
| author | coopi <coopi@noreply.codeberg.org> | 2026-02-28 15:53:27 +0400 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-04-15 23:10:24 +0200 |
| commit | 5ff9ca03390c68d70dba56c280b0cb0ab32f45a2 (patch) | |
| tree | c1efe67c50318100c80f5c3e3ce429a58fe07c61 /gnu/packages | |
| parent | c4657c774b034dde519df3bf8aa63f5d487df472 (diff) | |
gnu: emacs-nerd-icons: Patch out font installer.
* gnu/packages/emacs-xyz.scm (emacs-nerd-icons)[#:phases]: Add
‘disable-font-installer’.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 012dddfc829..d7178f8655c 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm | |||
| @@ -35412,7 +35412,27 @@ files are easily readable and they work nicely with version control systems.") | |||
| 35412 | (build-system emacs-build-system) | 35412 | (build-system emacs-build-system) |
| 35413 | (arguments | 35413 | (arguments |
| 35414 | (list #:include #~(cons "^data\\/" %default-include) | 35414 | (list #:include #~(cons "^data\\/" %default-include) |
| 35415 | #:tests? #f)) ; no tests | 35415 | #:tests? #f ; no tests |
| 35416 | #:phases | ||
| 35417 | #~(modify-phases %standard-phases | ||
| 35418 | ;; The nerd-icons-install-fonts function would otherwise | ||
| 35419 | ;; download fonts from the network. Replace it with a stub | ||
| 35420 | ;; that instructs the user to install the font via Guix. | ||
| 35421 | (add-after 'unpack 'disable-font-installer | ||
| 35422 | (lambda _ | ||
| 35423 | (emacs-batch-edit-file "nerd-icons.el" | ||
| 35424 | '(progn | ||
| 35425 | (search-forward "(defun nerd-icons-install-fonts") | ||
| 35426 | (beginning-of-line) | ||
| 35427 | (kill-sexp) | ||
| 35428 | (insert "\ | ||
| 35429 | (defun nerd-icons-install-fonts (&optional pfx) | ||
| 35430 | (interactive \"P\") | ||
| 35431 | (message \"To use nerd-icons fonts, install `font-nerd-symbols' using | ||
| 35432 | `guix package -i font-nerd-symbols' or add it to your manifest or home config. | ||
| 35433 | Remember, that you may have to run `fc-cache -rv' to refresh the font cache.\ | ||
| 35434 | \"))") | ||
| 35435 | (basic-save-buffer)))))))) | ||
| 35416 | (synopsis "Library for easily using nerd font icons inside Emacs") | 35436 | (synopsis "Library for easily using nerd font icons inside Emacs") |
| 35417 | (description "Nerd-icons an alternative to all-the-icons. It works on both | 35437 | (description "Nerd-icons an alternative to all-the-icons. It works on both |
| 35418 | GUI and terminal, and requires a nerd font installed on your system.") | 35438 | GUI and terminal, and requires a nerd font installed on your system.") |
