me
/
guix
Archived
1
0
Fork 0

gnu: emacs-base16-theme: Add themes to output.

* gnu/packages/emacs-xyz (emacs-base16-theme)[arguments]: Add build directory
themes to #:include.  Add a phase to move them to the appropriate place.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
John Soo 2021-09-27 22:08:41 -07:00 committed by Nicolas Goaziou
parent 1623e6023b
commit 0c6145e591
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 18 additions and 0 deletions

View File

@ -8139,6 +8139,24 @@ answers.")
(sha256
(base32 "01w89g413s1da6rf94y1xnhw79cjy2bqb01yfjs58cy492cm0vr6"))))
(build-system emacs-build-system)
(arguments
`(#:include (cons "^build\\/.*\\.el$"
%default-include)
#:phases
(modify-phases %standard-phases
(add-after 'install 'mv-themes
(lambda* (#:key outputs #:allow-other-keys)
(use-modules (ice-9 regex))
(let* ((out (assoc-ref outputs "out"))
(theme-dir (string-append (elpa-directory out) "/build")))
(for-each (lambda (theme)
(rename-file
theme
(regexp-substitute #f
(string-match "build\\/" theme)
'pre 'post)))
(find-files theme-dir "\\.el$"))
(delete-file-recursively theme-dir)))))))
(home-page "https://github.com/belak/base16-emacs")
(synopsis "Base16 color themes for Emacs")
(description