@ -37,7 +37,9 @@ stdenv.mkDerivation rec {
++ ( if arch != null then [ " - - w i t h - g c c - a r c h = ${ arch } " ] else [ " - - w i t h o u t - g c c - a r c h " ] )
++ lib . optional ( librsvg != null ) " - - w i t h - r s v g "
++ lib . optional ( liblqr1 != null ) " - - w i t h - l q r "
++ lib . optional ( libjxl != null ) " - - w i t h - j x l "
# libjxl is broken on aarch64 (see meta.broken in libjxl) for now,
# let's disable it for now to unbreak the imagemagick build.
++ lib . optional ( libjxl != null && ! stdenv . isAarch64 ) " - - w i t h - j x l "
++ lib . optionals ( ghostscript != null )
[ " - - w i t h - g s - f o n t - d i r = ${ ghostscript } / s h a r e / g h o s t s c r i p t / f o n t s "
" - - w i t h - g s l i b "
@ -50,8 +52,12 @@ stdenv.mkDerivation rec {
buildInputs =
[ zlib fontconfig freetype ghostscript
libjxl lib lqr1 libpng libtiff libxml2 libheif djvulibre
liblqr1 libpng libtiff libxml2 libheif djvulibre
]
# libjxl is broken on aarch64 (see meta.broken in libjxl) for now,
# let's disable it for now to unbreak the imagemagick build.
++ lib . optionals ( ! stdenv . isAarch64 )
[ libjxl ]
++ lib . optionals ( ! stdenv . hostPlatform . isMinGW )
[ openexr librsvg openjpeg ]
++ lib . optionals stdenv . isDarwin [