summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/zarith/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-08-21 12:05:01 +0200
committerVladimír Čunát <vcunat@gmail.com>2018-08-21 12:34:33 +0200
commitd0888d150333a2c523cd1e46606d6219afe23dc2 (patch)
tree174215e74549ca9b9882ca88e04cc2fdee42d83a /pkgs/development/ocaml-modules/zarith/default.nix
parentb300dddae1a9b1b80ec933ef8574766eb35fcb00 (diff)
downloadnixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.gz
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.bz2
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.lz
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.xz
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.zst
nixlib-d0888d150333a2c523cd1e46606d6219afe23dc2.zip
treewide: fixup breakage due to absolute compiler path
Some packages just can't handle them #44767.  It was tempting to try
to abstract this in some way, but I didn't do that ATM.
Diffstat (limited to 'pkgs/development/ocaml-modules/zarith/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/zarith/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/zarith/default.nix b/pkgs/development/ocaml-modules/zarith/default.nix
index e5d954970589..7b76919241de 100644
--- a/pkgs/development/ocaml-modules/zarith/default.nix
+++ b/pkgs/development/ocaml-modules/zarith/default.nix
@@ -28,7 +28,10 @@ stdenv.mkDerivation rec {
   propagatedBuildInputs = [ gmp ];
 
   patchPhase = "patchShebangs ./z_pp.pl";
+
   configurePhase = ''
+    CC=${stdenv.cc.targetPrefix}cc
+    CXX=${stdenv.cc.targetPrefix}c++
     ./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
   '';
   preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib";