blob: c104adc78cc3a747a96fd7db32d000c63908db1c (
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
42
43
44
45
46
47
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, perl, pythonPackages, libiconv, jansson }:
stdenv.mkDerivation {
pname = "universal-ctags";
version = "unstable-2019-07-30";
src = fetchFromGitHub {
owner = "universal-ctags";
repo = "ctags";
rev = "920e7910146915e5cae367bc9f135ffd8b042042";
sha256 = "14n3ix77rkhq6vq6kspmgjrmm0kg0f8cxikyqdq281sbnfq8bajn";
};
nativeBuildInputs = [ autoreconfHook pkgconfig pythonPackages.docutils ];
buildInputs = [ jansson ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
# to generate makefile.in
autoreconfPhase = ''
./autogen.sh
'';
configureFlags = [ "--enable-tmpdir=/tmp" ];
postPatch = ''
# Remove source of non-determinism
substituteInPlace main/options.c \
--replace "printf (\" Compiled: %s, %s\n\", __DATE__, __TIME__);" ""
'';
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.mimame ];
};
}
|