From f6e6871f38ae662374d3501708872a3d6bd6f701 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Tue, 25 Jun 2024 22:00:47 +0200 Subject: [PATCH] add pegtl to overlay for 2.91-dev --- overlay.nix | 2 ++ pegtl.nix | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 pegtl.nix diff --git a/overlay.nix b/overlay.nix index 2ef6a19..c9840df 100644 --- a/overlay.nix +++ b/overlay.nix @@ -89,6 +89,8 @@ let else prev.prefetch-npm-deps; nix-doc = prev.callPackage ./nix-doc/package.nix { withPlugin = false; }; + + pegtl = prev.callPackage ./pegtl.nix { }; }; in # Make the overlay idempotent, since flakes passing nixos modules around by diff --git a/pegtl.nix b/pegtl.nix new file mode 100644 index 0000000..3fd999d --- /dev/null +++ b/pegtl.nix @@ -0,0 +1,23 @@ +{ + stdenv, + cmake, + ninja, + fetchFromGitHub, +}: + +stdenv.mkDerivation { + pname = "pegtl"; + version = "3.2.7"; + + src = fetchFromGitHub { + repo = "PEGTL"; + owner = "taocpp"; + rev = "refs/tags/3.2.7"; + hash = "sha256-IV5YNGE4EWVrmg2Sia/rcU8jCuiBynQGJM6n3DCWTQU="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; +}