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 13:41:18 +01:00
|
|
|
pname = "cre2";
|
2017-03-19 21:15:21 +00:00
|
|
|
version = "0.3.0";
|
2019-08-05 05:39:57 +01:00
|
|
|
|
2017-03-19 21:15:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marcomaggi";
|
|
|
|
repo = "cre2";
|
2019-08-05 05:39:57 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1h9jwn6z8kjf4agla85b5xf7gfkdwncp0mfd8zwk98jkm8y2qx9q";
|
2017-03-19 21:15:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://marcomaggi.github.io/docs/cre2.html";
|
2017-03-19 21:15:21 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|