diff --git a/pkgs/development/ocaml-modules/bdd/default.nix b/pkgs/development/ocaml-modules/bdd/default.nix index 1ddb8634f3c..358d92d3505 100644 --- a/pkgs/development/ocaml-modules/bdd/default.nix +++ b/pkgs/development/ocaml-modules/bdd/default.nix @@ -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 ];