From 1493e60f77224ad6a5138505010cd546c1327cf0 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 12 Nov 2021 22:10:58 +0300 Subject: [PATCH] pngquant: fix cross-compilation --- pkgs/tools/graphics/pngquant/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/graphics/pngquant/default.nix b/pkgs/tools/graphics/pngquant/default.nix index b2b0691718a9..bb0ef8581250 100644 --- a/pkgs/tools/graphics/pngquant/default.nix +++ b/pkgs/tools/graphics/pngquant/default.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { preConfigure = "patchShebangs ."; + configureFlags = lib.optionals (!stdenv.isi686 && !stdenv.isx86_64) [ "--disable-sse" ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ libpng zlib lcms2 ];