diff --git a/rekahsoft-gnu/packages/emacs-xyz.scm b/rekahsoft-gnu/packages/emacs-xyz.scm index 93bbdce..07d8ab0 100644 --- a/rekahsoft-gnu/packages/emacs-xyz.scm +++ b/rekahsoft-gnu/packages/emacs-xyz.scm @@ -541,8 +541,42 @@ See perspective.el on github: https://github.com/nex3/perspective-el (sha256 (base32 "1k9yv9iw694alf5w7555ygk2i1b26i90rqq7ny63a4nd3y5cbs5f")))) - - (build-system emacs-build-system) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + ((guix build emacs-build-system) #:prefix emacs:) + (guix build utils) + (srfi srfi-1)) + #:imported-modules (,@%gnu-build-system-modules + (guix build emacs-build-system) + (guix build emacs-utils)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (invoke "make" "compile-all") + #t)) + (replace 'check + (lambda _ + (invoke "make" "test-noninteractive") + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (target (string-append out "/share/emacs/site-lisp"))) + (mkdir-p target) + (for-each + (lambda (f) (install-file f target)) + (filter (lambda (f) + (not (or (string-contains f "test") + (string-contains f "checkdoc")))) + (find-files "." "\\.elc?$")))))) + (add-after 'install 'make-autoloads + (assoc-ref emacs:%standard-phases 'make-autoloads)) + (delete 'strip)))) + (native-inputs + `(("emacs" ,emacs-minimal))) (propagated-inputs `(("emacs-dash" ,emacs-dash) ("emacs-helm" ,emacs-helm)))