guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-haskell-snippets: Use correct director


From: guix-commits
Subject: branch master updated: gnu: emacs-haskell-snippets: Use correct directory for snippets.
Date: Mon, 23 Oct 2023 03:54:07 -0400

This is an automated email from the git hooks/post-receive script.

lilyp pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new fc6325ea0d gnu: emacs-haskell-snippets: Use correct directory for 
snippets.
fc6325ea0d is described below

commit fc6325ea0dc09b1bed1cf65a31c1b43ef1ff3498
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sun Oct 15 20:25:46 2023 +0200

    gnu: emacs-haskell-snippets: Use correct directory for snippets.
    
    This package instructs Yasnippet to look for snippets relative to its own
    path.  However, it installs the snippets directly to site-lisp, which as of
    79cfe30f3eb10bd3dbf7aa0f6e873c945d7d0ea5 is one directory above that.  Use 
the
    elpa-directory procedure introduced in that commit to rectify this mistake.
    
    * gnu/packages/emacs-xyz.scm (emacs-haskell-snippets)[#:phases]
    <install-snippets>: Use elpa-directory.
    
    Fixes: Wrong location for haskell snippets <https:issues.guix.gnu.org/66562>
---
 gnu/packages/emacs-xyz.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e996b4100b..7112a65181 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -35632,10 +35632,11 @@ conventions.")
         #:phases
         #~(modify-phases %standard-phases
             (add-after 'install 'install-snippets
-              (lambda _
+              (lambda* (#:key outputs #:allow-other-keys)
                 (let ((snippets
                        (string-append
-                        #$output 
"/share/emacs/site-lisp/snippets/haskell-mode")))
+                        (elpa-directory (assoc-ref outputs "out"))
+                        "/snippets/haskell-mode")))
                   (mkdir-p snippets)
                   (copy-recursively "snippets/haskell-mode" snippets)))))))
       (propagated-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]