summary refs log tree commit diff
path: root/pkgs/development/tools/misc/ctags/default.nix
blob: 577180880805772f8567e2df87658195c7d72de8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{stdenv, fetchurl, sourceFromHead, automake, autoconf}:

stdenv.mkDerivation rec {
  name = "ctags-svn";
  # REGION AUTO UPDATE:      { name="ctags"; type = "svn"; url = "https://ctags.svn.sourceforge.net/svnroot/ctags/trunk"; }
  src= sourceFromHead "ctags-749.tar.gz"
               (fetchurl { url = "http://mawercer.de/~nix/repos/ctags-749.tar.gz"; sha256 = "01dd4bf2e55dbedc38def81febef60eece912cb7624df1c0a2cf1ed6e4bc4ecf"; });
  # END

  preConfigure = ''
    autoheader
    autoconf
  '';

  buildInputs = [ automake autoconf ];

  # don't use $T(E)MP which is set to the build directory
  configureFlags="--enable-tmpdir=/tmp";

  meta = {
    description = "Exuberant Ctags, a tool for fast source code browsing";

    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 = "GPLv2+";
  };

}