2017-03-19 21:50:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook,
|
2017-03-19 21:15:21 +00:00
|
|
|
libtool, pkgconfig, re2, texinfo }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cre2";
|
2017-03-19 21:15:21 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marcomaggi";
|
|
|
|
repo = "cre2";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "12yrdad87jjqrhbqm02hzsayan2402vf61a9x1b2iabv6d1c1bnj";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2017-03-19 21:50:06 +00:00
|
|
|
autoreconfHook
|
2017-03-19 21:15:21 +00:00
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
];
|
2017-03-19 21:50:06 +00:00
|
|
|
buildInputs = [ re2 texinfo ];
|
2017-03-19 21:15:21 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS="-lre2 -lpthread";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-maintainer-mode"
|
|
|
|
];
|
|
|
|
|
2017-03-19 21:50:06 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-03-19 21:15:21 +00:00
|
|
|
homepage = http://marcomaggi.github.io/docs/cre2.html;
|
|
|
|
description = "C Wrapper for RE2";
|
2017-03-19 21:50:06 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2017-03-19 21:15:21 +00:00
|
|
|
};
|
|
|
|
}
|