{ lib , stdenv , fetchFromGitHub , cmake }: stdenv.mkDerivation rec { pname = "re-flex"; version = "4.5.0"; src = fetchFromGitHub { owner = "Genivia"; repo = "RE-flex"; rev = "v${version}"; hash = "sha256-Dc/nnzJtkLgfmYnilA9FtOPtlOwTqgXtNVWhypFu5hs="; }; outputs = [ "out" "bin" "dev" ]; nativeBuildInputs = [ cmake ]; meta = with lib; { homepage = "https://www.genivia.com/doc/reflex/html"; description = "Regex-centric, fast lexical analyzer generator for C++ with full Unicode support"; license = licenses.bsd3; platforms = platforms.all; maintainers = with lib.maintainers; [ prrlvr ]; mainProgram = "reflex"; }; }