ocamlPackages.dum: fix build with OCaml ≥ 5.0

This commit is contained in:
Vincent Laporte
2023-11-06 00:18:25 +01:00
committed by Vincent Laporte
parent ab0a9324bf
commit 75fa489b3f
@@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr";
};
postPatch = ''
substituteInPlace "dum.ml" \
--replace "Lazy.lazy_is_val" "Lazy.is_val" \
--replace "Obj.final_tag" "Obj.custom_tag"
'';
nativeBuildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ easy-format ];