about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/sregex/default.nix
blob: 48a1b9c3930edd93191e63ba01604d65f1fad821 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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; [];
    platforms = platforms.all;
  };
}