all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir'.
@ 2015-06-21 12:32 宋文武
  2015-06-21 13:21 ` 宋文武
  2015-06-22 19:51 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: 宋文武 @ 2015-06-21 12:32 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/emacs.scm (geiser)[arguments]: Symlink Guile modules
  to the right 'guilesitedir' in the 'post-install' phase.
---
 gnu/packages/emacs.scm | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 2502f29..337d00d 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -196,10 +196,17 @@ editor (without an X toolkit)" )
      '(#:phases (alist-cons-after
                  'install 'post-install
                  (lambda* (#:key outputs #:allow-other-keys)
-                   (symlink "geiser-install.el"
-                            (string-append (assoc-ref outputs "out")
-                                           "/share/emacs/site-lisp/"
-                                           "geiser-autoloads.el")))
+                   (let* ((out (assoc-ref outputs "out"))
+                          (guilesitedir (string-append
+                                         out "/share/guile/site/2.0")))
+                     (symlink "geiser-install.el"
+                              (string-append out
+                                             "/share/emacs/site-lisp/"
+                                             "geiser-autoloads.el"))
+                     ;; Symlink Guile modules to the right 'guilesitedir'.
+                     (mkdir-p guilesitedir)
+                     (symlink (string-append out "/share/geiser/guile/geiser")
+                              (string-append guilesitedir "/geiser"))))
                  %standard-phases)))
     (inputs `(("guile" ,guile-2.0)
               ("emacs" ,emacs-no-x)))
-- 
2.2.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-23  6:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-21 12:32 [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir' 宋文武
2015-06-21 13:21 ` 宋文武
2015-06-21 14:05   ` Alex Kost
2015-06-22 19:51 ` Ludovic Courtès
2015-06-23  6:20   ` 宋文武

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.