2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, cmake
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "re-flex";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.5.0";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Genivia";
|
|
|
|
repo = "RE-flex";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Dc/nnzJtkLgfmYnilA9FtOPtlOwTqgXtNVWhypFu5hs=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
outputs = [ "out" "bin" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://www.genivia.com/doc/reflex/html";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Regex-centric, fast lexical analyzer generator for C++ with full Unicode support";
|
2023-03-08 16:32:21 +00:00
|
|
|
license = licenses.bsd3;
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.all;
|
2023-03-08 16:32:21 +00:00
|
|
|
maintainers = with lib.maintainers; [ prrlvr ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "reflex";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
}
|