guix-commits
[Top][All Lists]
Advanced

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

04/06: gnu: emacs-ggtags: Don't require GNU Global in path


From: guix-commits
Subject: 04/06: gnu: emacs-ggtags: Don't require GNU Global in path
Date: Wed, 9 Jan 2019 12:48:05 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit ecf7e4ea432175f3556cde6956cfda889a470471
Author: Tim Gesthuizen <address@hidden>
Date:   Tue Dec 25 11:22:19 2018 +0100

    gnu: emacs-ggtags: Don't require GNU Global in path
    
    emacs-ggtags relies on the GNU Global tools (global and gtags) to be 
available
    in the path. This way it will grab some random executable if it will find
    executables at all.
    This is fixed by setting the prefix to GNU Global in the store. This way
    emacs-ggtags will use specific deterministic executables.
    
    * gnu/packages/emacs.scm (emacs-ggtags):
    [inputs]: Add GNU Global to the inputs
    [arguments]: Add a phase for substituting the right path to the executables
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/emacs.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index f3f2440..34b3086 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1435,6 +1435,18 @@ environment set through Direnv.")
         (base32
          "1qa7lcrcmf76sf6dy8sxbg4adq7rg59fm0n5848w3qxgsr0h45fg"))))
     (build-system emacs-build-system)
+    (inputs
+     `(("global" ,global)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (chmod "ggtags.el" #o644)
+             (emacs-substitute-variables "ggtags.el"
+               ("ggtags-executable-directory"
+                (string-append (assoc-ref inputs "global") "/bin")))
+             #t)))))
     (home-page "https://github.com/leoliu/ggtags";)
     (synopsis "Frontend to the GNU Global source code tagging system")
     (description "@code{ggtags} provides a frontend to the GNU Global source



reply via email to

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