ocaml-ng.ocamlPackages_4_02.bdd: fix build

This commit is contained in:
Weijia Wang 2023-04-18 14:18:31 +03:00 committed by Vincent Laporte
parent c1943858c7
commit 9b419c67cf

View file

@ -17,6 +17,12 @@ buildDunePackage {
hash = "sha256-3mJZlAFQsI7AgrNQOe6N94CDfX5gXYqQBooV0jcoYEA=";
};
# Fix build with OCaml 4.02
postPatch = ''
substituteInPlace lib/bdd.ml \
--replace "Buffer.truncate Format.stdbuf 0;" "Buffer.clear Format.stdbuf;"
'';
propagatedBuildInputs = [
stdlib-shims
];