From 4fe2f9805120800b83752f3d29a8d3db18677d0a Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Thu, 1 May 2014 09:14:05 -0500 Subject: [PATCH] zarith: fix perl path Signed-off-by: Austin Seipp --- pkgs/development/ocaml-modules/zarith/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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 '';