Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
898 B
Nix

{
lib,
fetchFromGitHub,
ocaml,
buildDunePackage,
fix,
menhirLib,
menhirSdk,
gitUpdater,
}:
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 = {
description = "Simple fork of OCaml parser with support for error recovery";
homepage = "https://github.com/serokell/ocaml-recovery-parser";
license = with lib.licenses; [
lgpl2Only
mit
mpl20
];
maintainers = with lib.maintainers; [ romildo ];
mainProgram = "menhir-recover";
broken = lib.versionAtLeast ocaml.version "5.0";
};
}