From 9fab349ef58040ac5cb7db3c291d0b6cfc6cdffe Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Wed, 16 Aug 2017 10:25:02 +0200 Subject: [PATCH] optipng: Workaround for issue 28106. --- pkgs/tools/graphics/optipng/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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"