nixpkgs/pkgs/development/tools/misc/ctags/default.nix
Charles Strahan 53ea7dee75 emacs: fix priority for ctags
This fixes the previous attempt (in commit 46d1dd5) to make ctags' ctags
override emacs' ctags. The higher the value of the priority attribute,
the higher the priority (see the definition of `buildEnv`).
2016-02-26 12:27:04 -05:00

38 lines
1.2 KiB
Nix

{ stdenv, fetchsvn, autoreconfHook }:
stdenv.mkDerivation rec {
name = "ctags-${revision}";
revision = "816";
src = fetchsvn {
url = "https://ctags.svn.sourceforge.net/svnroot/ctags/trunk";
rev = revision;
sha256 = "0jmbkrmscbl64j71qffcc39x005jrmphx8kirs1g2ws44wil39hf";
};
nativeBuildInputs = [ autoreconfHook ];
# don't use $T(E)MP which is set to the build directory
configureFlags= [ "--enable-tmpdir=/tmp" ];
meta = with stdenv.lib; {
description = "A tool for fast source code browsing (exuberant ctags)";
longDescription = ''
Ctags generates an index (or tag) file of language objects found
in source files that allows these items to be quickly and easily
located by a text editor or other utility. A tag signifies a
language object for which an index entry is available (or,
alternatively, the index entry created for that object). Many
programming languages are supported.
'';
homepage = http://ctags.sourceforge.net/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ simons ];
platforms = platforms.unix;
# So that Exuberant ctags is preferred over emacs's ctags
priority = 1;
};
}