From bd0d64730a90c8447245e415a2d10982ca95ba35 Mon Sep 17 00:00:00 2001 From: Leandro Lisboa Penz Date: Sun, 19 Mar 2017 14:25:56 +0000 Subject: [PATCH] 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. --- pkgs/development/tools/misc/global/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/misc/global/default.nix b/pkgs/development/tools/misc/global/default.nix index bd111c4ffbb..62d96b2158f 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})" '';