From c7ce8c776886bb6f720cd604ffff0f2ae78c4330 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 31 Mar 2015 20:52:53 -0500 Subject: [PATCH] global: make pygments visible to "gtags" binary --- pkgs/development/tools/misc/global/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/global/default.nix b/pkgs/development/tools/misc/global/default.nix index 7dc27bcdb761..4aff2ee4a0b0 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; {