summary refs log tree commit diff
path: root/pkgs/tools/graphics/optipng/default.nix
diff options
context:
space:
mode:
authorMoritz Ulrich <moritz@tarn-vedra.de>2017-08-16 10:25:02 +0200
committerMoritz Ulrich <moritz@tarn-vedra.de>2017-08-16 10:25:02 +0200
commit9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe (patch)
tree25bd45d17ea0aa0902bee9301e31d597c19e39bb /pkgs/tools/graphics/optipng/default.nix
parent0c1c3d2b996cff8b96b3f9b53e7780c88e1b4d13 (diff)
downloadnixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar.gz
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar.bz2
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar.lz
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar.xz
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.tar.zst
nixlib-9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe.zip
optipng: Workaround for issue 28106.
Diffstat (limited to 'pkgs/tools/graphics/optipng/default.nix')
-rw-r--r--pkgs/tools/graphics/optipng/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/optipng/default.nix b/pkgs/tools/graphics/optipng/default.nix
index 471e8ee8df47..f9b82a38344e 100644
--- a/pkgs/tools/graphics/optipng/default.nix
+++ b/pkgs/tools/graphics/optipng/default.nix
@@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
   buildInputs = [ libpng ];
 
   LDFLAGS = optional static "-static";
+  # Workaround for crash in cexcept.h. See
+  # https://github.com/NixOS/nixpkgs/issues/28106
+  preConfigure = ''
+    export LD=$CC
+  '';
+
   configureFlags = [
     "--with-system-zlib"
     "--with-system-libpng"