diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-11-02 14:59:54 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-11-06 00:18:25 +0100 |
commit | 75fa489b3fbc30ae13d84bb535fb55ef9b533f69 (patch) | |
tree | 46defa195a6f2cbf989015b10c6897cbf16bbad9 /pkgs | |
parent | ab0a9324bf20c1086a7ca3d08bbbb1a571d88607 (diff) |
ocamlPackages.dum: fix build with OCaml ≥ 5.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/dum/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/dum/default.nix b/pkgs/development/ocaml-modules/dum/default.nix index 3faef36e8ec4b..43584461af182 100644 --- a/pkgs/development/ocaml-modules/dum/default.nix +++ b/pkgs/development/ocaml-modules/dum/default.nix @@ -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 ]; |