about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/global
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-03-31 20:52:53 -0500
committerJohn Wiegley <johnw@newartisans.com>2015-03-31 20:53:22 -0500
commitc7ce8c776886bb6f720cd604ffff0f2ae78c4330 (patch)
tree8e5c3e3ddc7f768bc7cd427e085f13f6ac906b23 /pkgs/development/tools/misc/global
parent80283570848734d8473b6434141ce8f4406720e7 (diff)
global: make pygments visible to "gtags" binary
Diffstat (limited to 'pkgs/development/tools/misc/global')
-rw-r--r--pkgs/development/tools/misc/global/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/global/default.nix b/pkgs/development/tools/misc/global/default.nix
index 7dc27bcdb7611..4aff2ee4a0b01 100644
--- a/pkgs/development/tools/misc/global/default.nix
+++ b/pkgs/development/tools/misc/global/default.nix
@@ -1,4 +1,5 @@
-{ fetchurl, stdenv, libtool, ncurses, ctags, sqlite, pythonPackages }:
+{ fetchurl, stdenv, libtool, ncurses, ctags, sqlite
+, pythonPackages, makeWrapper }:
 
 stdenv.mkDerivation rec {
   name = "global-6.3.4";
@@ -8,7 +9,7 @@ stdenv.mkDerivation rec {
     sha256 = "0hcplcayyjf42d8ygzla6142b5dq4ybq4wg3n3cgx3b5yfhvic85";
   };
 
-  buildInputs = [ libtool ncurses ];
+  buildInputs = [ libtool ncurses makeWrapper ];
   propagatedBuildInputs = [ pythonPackages.pygments ];
 
   configurePhase =
@@ -24,6 +25,9 @@ stdenv.mkDerivation rec {
   postInstall = ''
     mkdir -p "$out/share/emacs/site-lisp"
     cp -v *.el "$out/share/emacs/site-lisp"
+
+    wrapProgram $out/bin/gtags \
+      --prefix PYTHONPATH : "$(toPythonPath ${pythonPackages.pygments})"
   '';
 
   meta = with stdenv.lib; {