ocamlPackages.zarith: fix build in chrooted environments

This commit is contained in:
Vincent Laporte
2016-11-03 09:26:33 +01:00
parent 8085aff315
commit 26256b7cea
@@ -26,9 +26,7 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib pkgconfig perl ];
propagatedBuildInputs = [ gmp ];
patchPhase = ''
substituteInPlace ./z_pp.pl --replace '/usr/bin/perl' '${perl}/bin/perl'
'';
patchPhase = "patchShebangs ./z_pp.pl";
configurePhase = ''
./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
'';