ocamlPackages.morbig: use broken instead of throw on incompatible ocaml

This commit is contained in:
Adam C. Stephens
2026-01-12 10:19:52 -05:00
parent cb589d4c98
commit 90221290f1
@@ -9,35 +9,32 @@
visitors,
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.4")
"morbig is not available for OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "morbig";
version = "0.11.0";
buildDunePackage
rec {
pname = "morbig";
version = "0.11.0";
src = fetchFromGitHub {
owner = "colis-anr";
repo = pname;
rev = "v${version}";
hash = "sha256-fOBaJHHP/Imi9UDLflI52OdKDcmMxpl+NH3pfofmv/o=";
};
src = fetchFromGitHub {
owner = "colis-anr";
repo = pname;
rev = "v${version}";
hash = "sha256-fOBaJHHP/Imi9UDLflI52OdKDcmMxpl+NH3pfofmv/o=";
};
nativeBuildInputs = [
menhir
];
nativeBuildInputs = [
menhir
];
propagatedBuildInputs = [
menhirLib
ppx_deriving_yojson
visitors
];
propagatedBuildInputs = [
menhirLib
ppx_deriving_yojson
visitors
];
meta = {
homepage = "https://github.com/colis-anr/${pname}";
description = "Static parser for POSIX Shell";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ niols ];
};
}
meta = {
homepage = "https://github.com/colis-anr/${pname}";
description = "Static parser for POSIX Shell";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ niols ];
broken = lib.versionAtLeast ocaml.version "5.4";
};
}