From 3f376828d8970c0751b86aef0b49e256ee09287e Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sun, 15 Dec 2019 00:49:26 +0100 Subject: [PATCH 2/3] gnu: emacs-doom-themes: Only disable breaking compilations. * gnu/packages/emacs-xyz.scm (emacs-doom-themes) [phases]: : Undelete it. : New phase. --- gnu/packages/emacs-xyz.scm | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 505594aa0d..1c06a9122d 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -19803,6 +19803,10 @@ contrast and few colors.") (arguments `(#:tests? #t #:test-command '("ert-runner") + #:modules ((guix build emacs-build-system) + (guix build utils) + (guix build emacs-utils) + (srfi srfi-1)) #:phases (modify-phases %standard-phases (add-after 'unpack 'move-themes @@ -19813,12 +19817,21 @@ contrast and few colors.") (rename-file f (basename f))) (find-files "./themes" ".*\\.el$")) #t)) - ;; XXX: There is a byte-code overflow issue in the latest - ;; checkout which affects byte-compilation for several theme - ;; files. The easiest way to work around this is to disable - ;; byte-compilation until the issue is resolved. + ;; There is a byte-code overflow issue in the latest checkout + ;; which affects byte-compilation for several (read `most') theme + ;; files. In order to cope with this issue, we disable + ;; byte-compilation until it is resolved. ;; - (delete 'build)))) + (add-after 'move-themes 'disable-breaking-compilation + (lambda _ + (for-each (lambda (file) + (chmod file #o600) + (emacs-batch-disable-compilation file)) + (cons "doom-themes-ext-neotree.el" + (lset-difference string-contains + (find-files "." ".*-theme.el") + '("snazzy" "tomorrow-day")))) + #t))))) (synopsis "Wide collection of color themes for Emacs") (description "Emacs-doom-themes contains numerous popular color themes for Emacs that integrate with major modes like Org-mode.") -- 2.24.0