diff options
author | Morgan Smith <Morgan.J.Smith@outlook.com> | 2025-03-02 14:31:29 -0500 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-06-15 16:56:50 +0200 |
commit | 00025ab4ac40d80064fff016907c37bcb022c34a (patch) | |
tree | a4e749efd086c1b9276e0405529469007fa8dcd8 /guix/build/emacs-build-system.scm | |
parent | 83babb5f98c6a05a95673363b98ae7ac6ac03010 (diff) |
guix: emacs-build-system: Add #:lisp-directory.
* guix/build-system/emacs.scm (emacs-build): Add #:lisp-directory.
* guix/build/emacs-build-system.scm (unpack): Change into lisp-directory
after unpacking.
Change-Id: I3991af7188de72b29b1c6985ffe7185216cedb35
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'guix/build/emacs-build-system.scm')
-rw-r--r-- | guix/build/emacs-build-system.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-system.scm index ff35547968..ffa6d3cbb0 100644 --- a/guix/build/emacs-build-system.scm +++ b/guix/build/emacs-build-system.scm @@ -67,7 +67,7 @@ name that has been stripped of the hash and version number." (strip-store-file-name file) suffix)))) (string-append name suffix)))) -(define* (unpack #:key source #:allow-other-keys) +(define* (unpack #:key source lisp-directory #:allow-other-keys) "Unpack SOURCE into the build directory. SOURCE may be a compressed archive, a directory, or an Emacs Lisp file." (if (string-suffix? ".el" source) @@ -76,7 +76,9 @@ archive, a directory, or an Emacs Lisp file." (chdir "source") (copy-file source (store-file->elisp-source-file source)) #t) - (gnu:unpack #:source source))) + (begin + (gnu:unpack #:source source) + (and=> lisp-directory chdir)))) (define* (expand-load-path #:key (prepend-source? #t) #:allow-other-keys) "Expand EMACSLOADPATH, so that inputs, whose code resides in subdirectories, |