Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 61 lines 2.0 kB view raw
1{ fetchurl, lib, stdenv, libtool, makeWrapper 2, coreutils, ctags, ncurses, python3Packages, sqlite, universal-ctags 3}: 4 5let 6 pygments = python3Packages.pygments; 7in stdenv.mkDerivation rec { 8 pname = "global"; 9 version = "6.6.7"; 10 11 src = fetchurl { 12 url = "mirror://gnu/global/${pname}-${version}.tar.gz"; 13 sha256 = "sha256-aaD3f1OCfFVoF2wdOCFm3zYedCY6BH8LMFiqLyrVijw="; 14 }; 15 16 nativeBuildInputs = [ libtool makeWrapper ]; 17 18 buildInputs = [ ncurses ]; 19 20 propagatedBuildInputs = [ pygments ]; 21 22 configureFlags = [ 23 "--with-ltdl-include=${libtool}/include" 24 "--with-ltdl-lib=${libtool.lib}/lib" 25 "--with-ncurses=${ncurses.dev}" 26 "--with-sqlite3=${sqlite.dev}" 27 "--with-exuberant-ctags=${ctags}/bin/ctags" 28 "--with-universal-ctags=${universal-ctags}/bin/ctags" 29 "--with-posix-sort=${coreutils}/bin/sort" 30 ]; 31 32 doCheck = true; 33 34 postInstall = '' 35 mkdir -p "$out/share/emacs/site-lisp" 36 cp -v *.el "$out/share/emacs/site-lisp" 37 38 wrapProgram $out/bin/gtags \ 39 --prefix PYTHONPATH : "$(toPythonPath ${pygments})" 40 wrapProgram $out/bin/global \ 41 --prefix PYTHONPATH : "$(toPythonPath ${pygments})" 42 ''; 43 44 meta = with lib; { 45 description = "Source code tag system"; 46 longDescription = '' 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. 55 ''; 56 homepage = "https://www.gnu.org/software/global/"; 57 license = licenses.gpl3Plus; 58 maintainers = with maintainers; [ pSub peterhoeg ]; 59 platforms = platforms.unix; 60 }; 61}