From 9bc38abb64e5c37128de10e8ad083dbce5e1b348 Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 17 Aug 2024 17:38:16 +0100 Subject: [PATCH] pegtl: init at 3.2.7 --- pkgs/by-name/pe/pegtl/default.nix | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/pe/pegtl/default.nix diff --git a/pkgs/by-name/pe/pegtl/default.nix b/pkgs/by-name/pe/pegtl/default.nix new file mode 100644 index 0000000..4ea4e93 --- /dev/null +++ b/pkgs/by-name/pe/pegtl/default.nix @@ -0,0 +1,38 @@ +{ + cmake, + fetchFromGitHub, + lib, + ninja, + stdenv, +}: +let + version = "3.2.7"; +in +stdenv.mkDerivation { + pname = "pegtl"; + inherit version; + + src = fetchFromGitHub { + owner = "taocpp"; + repo = "PEGTL"; + rev = version; + hash = "sha256-IV5YNGE4EWVrmg2Sia/rcU8jCuiBynQGJM6n3DCWTQU="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; + + meta = { + homepage = "https://github.com/taocpp/pegtl"; + description = "Parsing Expression Grammar Template Library"; + longDescription = '' + Zero-dependency C++ header-only parser combinator library + for creating parsers according to a Parsing Expression Grammar (PEG). + ''; + license = lib.licenses.boost; + maintainers = [ ]; + platforms = lib.platforms.all; + }; +}