lol
1{ lib, stdenv, fetchFromGitHub, autoreconfHook,
2 libtool, pkg-config, re2, texinfo }:
3
4stdenv.mkDerivation rec {
5 pname = "cre2";
6 version = "0.3.6";
7
8 src = fetchFromGitHub {
9 owner = "marcomaggi";
10 repo = pname;
11 rev = "v${version}";
12 sha256 = "1h9jwn6z8kjf4agla85b5xf7gfkdwncp0mfd8zwk98jkm8y2qx9q";
13 };
14
15 nativeBuildInputs = [
16 autoreconfHook
17 libtool
18 pkg-config
19 ];
20 buildInputs = [ re2 texinfo ];
21
22 NIX_LDFLAGS="-lre2 -lpthread";
23
24 configureFlags = [
25 "--enable-maintainer-mode"
26 ];
27
28 meta = with 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}