1{ stdenv, fetchFromGitHub, autoreconfHook,
2 libtool, pkgconfig, re2, texinfo }:
3
4stdenv.mkDerivation rec {
5 name = "cre2-${version}";
6 version = "0.3.0";
7
8 src = fetchFromGitHub {
9 owner = "marcomaggi";
10 repo = "cre2";
11 rev = version;
12 sha256 = "12yrdad87jjqrhbqm02hzsayan2402vf61a9x1b2iabv6d1c1bnj";
13 };
14
15 nativeBuildInputs = [
16 autoreconfHook
17 libtool
18 pkgconfig
19 ];
20 buildInputs = [ re2 texinfo ];
21
22 NIX_LDFLAGS="-lre2 -lpthread";
23
24 configureFlags = [
25 "--enable-maintainer-mode"
26 ];
27
28 meta = with stdenv.lib; {
29 homepage = http://marcomaggi.github.io/docs/cre2.html;
30 description = "C Wrapper for RE2";
31 license = licenses.bsd3;
32 platforms = platforms.all;
33 };
34}