Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
ocaml,
|
|
buildDunePackage,
|
|
fix,
|
|
menhirLib,
|
|
menhirSdk,
|
|
gitUpdater,
|
|
}:
|
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
|
"ocaml-recovery-parser is not available for OCaml ${ocaml.version}"
|
|
|
|
buildDunePackage
|
|
rec {
|
|
pname = "ocaml-recovery-parser";
|
|
version = "0.2.4";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
duneVersion = "3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "serokell";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "gOKvjmlcHDOgsTllj2sPL/qNtW/rlNlEVIrosahNsAQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
fix
|
|
menhirLib
|
|
menhirSdk
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Simple fork of OCaml parser with support for error recovery";
|
|
homepage = "https://github.com/serokell/ocaml-recovery-parser";
|
|
license = with licenses; [
|
|
lgpl2Only
|
|
mit
|
|
mpl20
|
|
];
|
|
maintainers = with maintainers; [ romildo ];
|
|
mainProgram = "menhir-recover";
|
|
};
|
|
}
|