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