global: make pygments visible to "gtags" binary
This commit is contained in:
parent
8028357084
commit
c7ce8c7768
@ -1,4 +1,5 @@
|
|||||||
{ fetchurl, stdenv, libtool, ncurses, ctags, sqlite, pythonPackages }:
|
{ fetchurl, stdenv, libtool, ncurses, ctags, sqlite
|
||||||
|
, pythonPackages, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "global-6.3.4";
|
name = "global-6.3.4";
|
||||||
@ -8,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0hcplcayyjf42d8ygzla6142b5dq4ybq4wg3n3cgx3b5yfhvic85";
|
sha256 = "0hcplcayyjf42d8ygzla6142b5dq4ybq4wg3n3cgx3b5yfhvic85";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libtool ncurses ];
|
buildInputs = [ libtool ncurses makeWrapper ];
|
||||||
propagatedBuildInputs = [ pythonPackages.pygments ];
|
propagatedBuildInputs = [ pythonPackages.pygments ];
|
||||||
|
|
||||||
configurePhase =
|
configurePhase =
|
||||||
@ -24,6 +25,9 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p "$out/share/emacs/site-lisp"
|
mkdir -p "$out/share/emacs/site-lisp"
|
||||||
cp -v *.el "$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; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user