From 202e90dccd88601416bf6d153f5b2c69e4d8c998 Mon Sep 17 00:00:00 2001 From: Earth Engine Date: Wed, 28 Jun 2023 08:29:58 +0000 Subject: [PATCH] sregex: init at 0.0.1 --- pkgs/development/libraries/sregex/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/sregex/default.nix diff --git a/pkgs/development/libraries/sregex/default.nix b/pkgs/development/libraries/sregex/default.nix new file mode 100644 index 000000000000..a964a8ffb296 --- /dev/null +++ b/pkgs/development/libraries/sregex/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "sregex"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "openresty"; + repo = pname; + rev = "v${version}"; + hash = "sha256-HZ9O/3BQHHrTVLLlU0o1fLHxyRSesBhreT3IdGHnNsg="; + }; + + makeFlags = [ "PREFIX=$(out)" "CC:=$(CC)" ]; + + meta = with lib; { + homepage = "https://github.com/openresty/sregex"; + description = "A non-backtracking NFA/DFA-based Perl-compatible regex engine matching on large data streams"; + license = licenses.bsd3; + maintainers = with maintainers; [ earthengine ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9f04be006c9..9403a0ab0952 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24536,6 +24536,8 @@ with pkgs; sqlite-jdbc = callPackage ../servers/sql/sqlite/jdbc { }; + sregex = callPackage ../development/libraries/sregex { }; + dqlite = callPackage ../development/libraries/dqlite { }; sqlcipher = callPackage ../development/libraries/sqlcipher { };