gnu: emacs-base16-theme: Update package style.

* gnu/packages/emacs-xyz.scm (emacs-base16-theme)[arguments]: Use G-expressions.
This commit is contained in:
Nicolas Goaziou 2022-07-11 10:41:55 +02:00
parent eccfd5186b
commit 7fc58dd0db
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

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