bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
43 lines
939 B
Nix
43 lines
939 B
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";
|
|
};
|
|
}
|