summary refs log tree commit diff
path: root/pkgs/development/libraries/zeroc-ice
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/libraries/zeroc-ice
parentb300dddae1a9b1b80ec933ef8574766eb35fcb00 (diff)
downloadnixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar
nixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.gz
nixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.bz2
nixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.lz
nixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.xz
nixpkgs-d0888d150333a2c523cd1e46606d6219afe23dc2.tar.zst
nixpkgs-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/libraries/zeroc-ice')
-rw-r--r--pkgs/development/libraries/zeroc-ice/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/zeroc-ice/default.nix b/pkgs/development/libraries/zeroc-ice/default.nix
index 063d64c6905..4369a9765e5 100644
--- a/pkgs/development/libraries/zeroc-ice/default.nix
+++ b/pkgs/development/libraries/zeroc-ice/default.nix
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
         --replace xcrun ""
   '';
 
+  preConfigure = ''
+    CC=${stdenv.cc.targetPrefix}cc
+    CXX=${stdenv.cc.targetPrefix}c++
+  '';
+
   makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ];
 
   enableParallelBuilding = true;