Skip to content
Snippets Groups Projects
Commit 40aee1a1 authored by Federico Beffa's avatar Federico Beffa
Browse files

build: emacs: Fix bug and improvement robustness.

* guix/build/emacs-build-system.scm (emacs-inputs): Fix matching pattern.
  (patch-el-files): Improve regexp pattern.
parent 85777fe5
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ (define* (patch-el-files #:key outputs #:allow-other-keys)
(el-dir (string-append out %install-suffix "/" elpa-name-ver))
(substitute-cmd (lambda ()
(substitute* (find-files "." "\\.el$")
(("\"/bin/(.*)\"" _ cmd)
(("\"/bin/([^.].*)\"" _ cmd)
(string-append "\"" (which cmd) "\""))))))
(with-directory-excursion el-dir
;; Some old '.el' files (e.g., tex-buf.el in AUCTeX) are still encoded
......@@ -114,7 +114,7 @@ (define (emacs-package? name)
(define (emacs-inputs inputs)
"Retrieve the list of Emacs packages from INPUTS."
(filter (match-lambda
((label directory)
((label . directory)
(emacs-package? ((compose package-name->name+version
store-directory->name-version)
directory)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment