nixpkgs/pkgs/development/libraries/sregex/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

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