diff --git a/pkgs/development/ocaml-modules/zarith/default.nix b/pkgs/development/ocaml-modules/zarith/default.nix index a05ff43a3df5..10ac88bcb90b 100644 --- a/pkgs/development/ocaml-modules/zarith/default.nix +++ b/pkgs/development/ocaml-modules/zarith/default.nix @@ -14,6 +14,9 @@ stdenv.mkDerivation rec { buildInputs = [ ocaml findlib pkgconfig gmp perl ]; + patchPhase = '' + substituteInPlace ./z_pp.pl --replace '/usr/bin/perl' '${perl}/bin/perl' + ''; configurePhase = '' ./configure -installdir $out/lib/ocaml/${ocaml_version}/site-lib '';