about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/global
diff options
context:
space:
mode:
authorLeandro Lisboa Penz <lpenz@lpenz.org>2017-03-19 14:25:56 +0000
committerLeandro Lisboa Penz <lpenz@lpenz.org>2017-03-19 14:25:56 +0000
commitbd0d64730a90c8447245e415a2d10982ca95ba35 (patch)
tree481ce7d531ea22e669b317495ee4e008ea325c47 /pkgs/development/tools/misc/global
parent8565047bdd85a893d9bc840674d920eab90bbbfd (diff)
gnu global: set path of default gtags.conf in wrapper
GNU global's gtags and global tools were unable to find the default
gtags.conf, necessary to use gtagslabels. The error could be seen
when gtags was invoked with -v:
$ gtags -v --gtagslabel=pygments
[Sun Mar 19 14:13:17 UTC 2017] Gtags started.
 Using default configuration.
 GTAGSLABEL(--gtagslabel) ignored since configuration file not found.
 Using 'gtags.files' as a file list.
[Sun Mar 19 14:13:17 UTC 2017] Creating 'GTAGS' and 'GRTAGS'.
[Sun Mar 19 14:13:17 UTC 2017] Done.

The wrapper now points to the default gtags.conf using the
GTAGSCONF environment variable.
Diffstat (limited to 'pkgs/development/tools/misc/global')
-rw-r--r--pkgs/development/tools/misc/global/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/global/default.nix b/pkgs/development/tools/misc/global/default.nix
index bd111c4ffbbdf..62d96b2158f97 100644
--- a/pkgs/development/tools/misc/global/default.nix
+++ b/pkgs/development/tools/misc/global/default.nix
@@ -34,8 +34,10 @@ stdenv.mkDerivation rec {
     cp -v *.el "$out/share/emacs/site-lisp"
 
     wrapProgram $out/bin/gtags \
+      --prefix GTAGSCONF : "$out/share/gtags/gtags.conf" \
       --prefix PYTHONPATH : "$(toPythonPath ${pythonPackages.pygments})"
     wrapProgram $out/bin/global \
+      --prefix GTAGSCONF : "$out/share/gtags/gtags.conf" \
       --prefix PYTHONPATH : "$(toPythonPath ${pythonPackages.pygments})"
   '';