nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 stdlib-shims,
6}:
7
8buildDunePackage (finalAttrs: {
9 version = "3.0.0";
10 pname = "earley";
11 src = fetchFromGitHub {
12 owner = "rlepigre";
13 repo = "ocaml-earley";
14 tag = finalAttrs.version;
15 hash = "sha256-vvw6Fi/6EEgF6gub6U/ZE73K3hMw/QWiMvxC1ttHJe4=";
16 };
17
18 buildInputs = [ stdlib-shims ];
19
20 doCheck = true;
21
22 meta = {
23 description = "Parser combinators based on Earley Algorithm";
24 homepage = "https://github.com/rlepigre/ocaml-earley";
25 license = lib.licenses.cecill-b;
26 maintainers = [ lib.maintainers.vbgl ];
27 mainProgram = "pa_ocaml";
28 };
29})