add pegtl to overlay for 2.91-dev

This commit is contained in:
eldritch horrors 2024-06-25 22:00:47 +02:00
parent 909e593ae9
commit f6e6871f38
2 changed files with 25 additions and 0 deletions

View file

@ -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

23
pegtl.nix Normal file
View file

@ -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
];
}