1 { fetchurl, lib, stdenv, libtool, makeWrapper
2 , coreutils, ctags, ncurses, python3Packages, sqlite, universal-ctags
6 pygments = python3Packages.pygments;
7 in stdenv.mkDerivation rec {
12 url = "mirror://gnu/global/${pname}-${version}.tar.gz";
13 hash = "sha256-lF80lzDaAfd4VNmBHKj4AWaclGE5WimWbY2Iy2cDNHs=";
16 nativeBuildInputs = [ libtool makeWrapper ];
18 buildInputs = [ ncurses sqlite ];
20 propagatedBuildInputs = [ pygments ];
23 "--with-ltdl-include=${libtool}/include"
24 "--with-ltdl-lib=${libtool.lib}/lib"
25 "--with-ncurses=${ncurses}"
27 "--with-exuberant-ctags=${ctags}/bin/ctags"
28 "--with-universal-ctags=${universal-ctags}/bin/ctags"
29 "--with-posix-sort=${coreutils}/bin/sort"
35 mkdir -p "$out/share/emacs/site-lisp"
36 cp -v *.el "$out/share/emacs/site-lisp"
38 wrapProgram $out/bin/gtags \
39 --prefix PYTHONPATH : "$(toPythonPath ${pygments})"
40 wrapProgram $out/bin/global \
41 --prefix PYTHONPATH : "$(toPythonPath ${pygments})"
45 description = "Source code tag system";
47 GNU GLOBAL is a source code tagging system that works the same way
48 across diverse environments (Emacs, vi, less, Bash, web browser, etc).
49 You can locate specified objects in source files and move there easily.
50 It is useful for hacking a large project containing many
51 subdirectories, many #ifdef and many main() functions. It is similar
52 to ctags or etags but is different from them at the point of
53 independence of any editor. It runs on a UNIX (POSIX) compatible
54 operating system like GNU and BSD.
56 homepage = "https://www.gnu.org/software/global/";
57 license = licenses.gpl3Plus;
58 maintainers = with maintainers; [ pSub peterhoeg ];
59 platforms = platforms.unix;
60 changelog = "https://cvs.savannah.gnu.org/viewvc/global/global/NEWS?view=markup&pathrev=VERSION-${lib.replaceStrings [ "." ] [ "_" ] version}";