git.iko.soy/typeable/nixpkgs
on master help sign in
cre2: init at 0.3.0

c wrapper for google's re2 regex library

commitb00bfb0401347637e512ef56acb4e34c266209b8 authorGuillaume Massé <masgui@gmail.com> dateSun 19 Mar 2017, 17:15 (10 years ago) parent4f2a289
2 files changed+41
pkgs/development/libraries/cre2/default.nix+39 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/cre2/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake,
2+ libtool, pkgconfig, re2, texinfo }:
3+
4+stdenv.mkDerivation rec {
5+ name = "cre2-${version}";
6+
7+ version = "0.3.0";
8+
9+ src = fetchFromGitHub {
10+ owner = "marcomaggi";
11+ repo = "cre2";
12+ rev = version;
13+ sha256 = "12yrdad87jjqrhbqm02hzsayan2402vf61a9x1b2iabv6d1c1bnj";
14+ };
15+
16+ nativeBuildInputs = [
17+ autoconf
18+ automake
19+ libtool
20+ pkgconfig
21+ re2
22+ texinfo
23+ ];
24+
25+ NIX_LDFLAGS="-lre2 -lpthread";
26+
27+ preConfigure = "sh autogen.sh";
28+
29+ configureFlags = [
30+ "--enable-maintainer-mode"
31+ ];
32+
33+ meta = {
34+ homepage = http://marcomaggi.github.io/docs/cre2.html;
35+ description = "C Wrapper for RE2";
36+ license = stdenv.lib.licenses.bsd3;
37+ platforms = with stdenv.lib.platforms; all;
38+ };
39+}
pkgs/top-level/all-packages.nix+2
@@ -7195,6 +7195,8 @@ with pkgs;
71957195
71967196 cracklib = callPackage ../development/libraries/cracklib { };
71977197
7198+ cre2 = callPackage ../development/libraries/cre2 { };
7199+
71987200 cryptopp = callPackage ../development/libraries/crypto++ { };
71997201
72007202 curlcpp = callPackage ../development/libraries/curlcpp { };