Commit 75fa489b authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

ocamlPackages.dum: fix build with OCaml ≥ 5.0

parent ab0a9324
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 ];