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