gnu: emacs: Install site-start.el in non-versioned directory.

Reported by Ricardo Wurmus on #guix.

* gnu/packages/emacs.scm (emacs)[arguments]: Put "site-start.el" in
"/share/emacs/site-lisp" instead of "/share/emacs/<version>/site-lisp"
to let inherited package with another version find it.
This commit is contained in:
Alex Kost 2016-07-21 20:13:27 +03:00
parent 07f7cc03ce
commit c48899eba2
No known key found for this signature in database
GPG Key ID: 82460C082A0EE98F
1 changed files with 1 additions and 3 deletions

View File

@ -125,9 +125,7 @@
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((guix-src (assoc-ref inputs "guix-src")) (let* ((guix-src (assoc-ref inputs "guix-src"))
(out (assoc-ref outputs "out")) (out (assoc-ref outputs "out"))
(lisp-dir (string-append out "/share/emacs/" (lisp-dir (string-append out "/share/emacs/site-lisp"))
,(version-major+minor version)
"/site-lisp"))
(unpack (assoc-ref %standard-phases 'unpack))) (unpack (assoc-ref %standard-phases 'unpack)))
(mkdir "guix") (mkdir "guix")
(with-directory-excursion "guix" (with-directory-excursion "guix"