2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook,
|
2021-01-19 06:50:56 +00:00
|
|
|
libtool, pkg-config, re2, texinfo }:
|
2017-03-19 21:15:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cre2";
|
2020-11-18 04:06:13 +00:00
|
|
|
version = "0.3.6";
|
2019-08-05 04:39:57 +00:00
|
|
|
|
2017-03-19 21:15:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marcomaggi";
|
2020-11-18 04:06:13 +00:00
|
|
|
repo = pname;
|
2019-08-05 04:39:57 +00: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
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2017-03-19 21:15:21 +00:00
|
|
|
];
|
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"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00: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
|
|
|
};
|
|
|
|
}
|