global: make pygments visible to "gtags" binary

This commit is contained in:
John Wiegley 2015-03-31 20:52:53 -05:00
parent 8028357084
commit c7ce8c7768

View File

@ -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; {