about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/universal-ctags/default.nix
blob: 544fc213273dc2a901cb45f1eb48f2f60380c12b (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
38
39
40
41
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, perl }:

stdenv.mkDerivation rec {
  name = "universal-ctags-${version}";
  version = "2017-01-08";

  src = fetchFromGitHub {
    owner = "universal-ctags";
    repo = "ctags";
    rev = "9668032d8715265ca5b4ff16eb2efa8f1c450883";
    sha256 = "0nwcf5mh3ba0g23zw7ym73pgpfdass412k2fy67ryr9vnc709jkj";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ ];

  # remove when https://github.com/universal-ctags/ctags/pull/1267 is merged
  patches = [ ./sed-test.patch ];

  autoreconfPhase = ''
    ./autogen.sh --tmpdir
  '';

  postConfigure = ''
    sed -i 's|/usr/bin/env perl|${perl}/bin/perl|' misc/optlib2c
  '';

  doCheck = true;

  checkFlags = "units";

  meta = with stdenv.lib; {
    description = "A maintained ctags implementation";
    homepage = https://ctags.io/;
    license = licenses.gpl2Plus;
    platforms = platforms.unix;
    # universal-ctags is preferred over emacs's ctags
    priority = 1;
    maintainers = [ maintainers.mimadrid ];
  };
}