nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 49 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 ocaml, 5 buildDunePackage, 6 fix, 7 menhirLib, 8 menhirSdk, 9 gitUpdater, 10}: 11 12lib.throwIf (lib.versionAtLeast ocaml.version "5.0") 13 "ocaml-recovery-parser is not available for OCaml ${ocaml.version}" 14 15 buildDunePackage 16 rec { 17 pname = "ocaml-recovery-parser"; 18 version = "0.2.4"; 19 20 minimalOCamlVersion = "4.08"; 21 duneVersion = "3"; 22 23 src = fetchFromGitHub { 24 owner = "serokell"; 25 repo = pname; 26 rev = version; 27 sha256 = "gOKvjmlcHDOgsTllj2sPL/qNtW/rlNlEVIrosahNsAQ="; 28 }; 29 30 propagatedBuildInputs = [ 31 fix 32 menhirLib 33 menhirSdk 34 ]; 35 36 passthru.updateScript = gitUpdater { }; 37 38 meta = with lib; { 39 description = "Simple fork of OCaml parser with support for error recovery"; 40 homepage = "https://github.com/serokell/ocaml-recovery-parser"; 41 license = with licenses; [ 42 lgpl2Only 43 mit 44 mpl20 45 ]; 46 maintainers = with maintainers; [ romildo ]; 47 mainProgram = "menhir-recover"; 48 }; 49 }