at 24.11-pre 24 lines 645 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "sregex"; 5 version = "0.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "openresty"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-HZ9O/3BQHHrTVLLlU0o1fLHxyRSesBhreT3IdGHnNsg="; 12 }; 13 14 makeFlags = [ "PREFIX=$(out)" "CC:=$(CC)" ]; 15 16 meta = with lib; { 17 homepage = "https://github.com/openresty/sregex"; 18 description = "A non-backtracking NFA/DFA-based Perl-compatible regex engine matching on large data streams"; 19 mainProgram = "sregex-cli"; 20 license = licenses.bsd3; 21 maintainers = with maintainers; []; 22 platforms = platforms.all; 23 }; 24}