diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-25 18:06:39 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-11-03 09:26:33 +0100 |
commit | 26256b7cea2957e457a3f9d897c8eb4e3e6f134f (patch) | |
tree | dcb6072099e3460d3b933aeaee56e78d0fa4bd59 /pkgs/development/ocaml-modules/zarith | |
parent | 8085aff31572ad6180cd810387f2cbb0a28fd4ec (diff) | |
download | nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar.gz nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar.bz2 nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar.lz nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar.xz nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.tar.zst nixlib-26256b7cea2957e457a3f9d897c8eb4e3e6f134f.zip |
ocamlPackages.zarith: fix build in chrooted environments
Diffstat (limited to 'pkgs/development/ocaml-modules/zarith')
-rw-r--r-- | pkgs/development/ocaml-modules/zarith/default.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/zarith/default.nix b/pkgs/development/ocaml-modules/zarith/default.nix index 09cefdfbb69f..2cb4fdcd3014 100644 --- a/pkgs/development/ocaml-modules/zarith/default.nix +++ b/pkgs/development/ocaml-modules/zarith/default.nix @@ -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 ''; |