about summary refs log tree commit diff
path: root/pkgs/applications/graphics/exrtools
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/applications/graphics/exrtools
parentb300dddae1a9b1b80ec933ef8574766eb35fcb00 (diff)
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/applications/graphics/exrtools')
-rw-r--r--pkgs/applications/graphics/exrtools/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/exrtools/default.nix b/pkgs/applications/graphics/exrtools/default.nix
index 7980d09fed12b..01af81d4de74e 100644
--- a/pkgs/applications/graphics/exrtools/default.nix
+++ b/pkgs/applications/graphics/exrtools/default.nix
@@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
     sha256 = "0jpkskqs1yjiighab4s91jy0c0qxcscwadfn94xy2mm2bx2qwp4z";
   };
 
+  preConfigure = ''
+    CC=${stdenv.cc.targetPrefix}cc
+    CXX=${stdenv.cc.targetPrefix}c++
+  '';
+
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ stdenv openexr libpng12 libjpeg ];