depot/third_party/nixpkgs/pkgs/development/libraries/sregex/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

24 lines
626 B
Nix

{ 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 = "Non-backtracking NFA/DFA-based Perl-compatible regex engine matching on large data streams";
mainProgram = "sregex-cli";
license = licenses.bsd3;
maintainers = [ ];
platforms = platforms.all;
};
}