From 26256b7cea2957e457a3f9d897c8eb4e3e6f134f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 25 Oct 2016 18:06:39 +0200 Subject: [PATCH] ocamlPackages.zarith: fix build in chrooted environments --- pkgs/development/ocaml-modules/zarith/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/zarith/default.nix b/pkgs/development/ocaml-modules/zarith/default.nix index 09cefdfbb69..2cb4fdcd301 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 '';