anchor.diff:      # let's disable it for now to unbreak the imagemagick build.
       ++ lib.optional (libjxl != null && !stdenv.isAarch64) "--with-jxl"
       ++ lib.optionals (ghostscript != null)
  -      [ "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts"
  +      [
  +        "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts"
           "--with-gslib"
         ]
       ++ lib.optionals stdenv.hostPlatform.isMinGW
         [ "--enable-static" "--disable-shared" ] # due to libxml2 being without DLLs ATM
  -    ;
  +  ;
   
     nativeBuildInputs = [ pkg-config libtool ];
   
     buildInputs =
  -    [ zlib fontconfig freetype ghostscript potrace
  -      liblqr1 libpng libraw libtiff libxml2 libheif djvulibre
  +    [
  +      zlib
  +      fontconfig
  +      freetype
  +      ghostscript
  +      potrace
  +      liblqr1
  +      libpng
  +      libraw
  +      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.
  
positive.code:     if stdenv.hostPlatform.system == "i686-linux" then "i686"
      else if stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin" then "x86-64"
      else if stdenv.hostPlatform.system == "armv7l-linux" then "armv7l"
      else if stdenv.hostPlatform.system == "aarch64-linux"  || stdenv.hostPlatform.system == "aarch64-darwin" then "aarch64"
      else if stdenv.hostPlatform.system == "powerpc64le-linux" then "ppc64le"
      else null;
  in
  
negative.code:     ];
  
    propagatedBuildInputs =
      [ bzip2 freetype libjpeg lcms2 curl ]
      ++ lib.optionals (!stdenv.hostPlatform.isMinGW)
        [ libX11 libXext libXt libwebp ]
    ;
  
    postInstall = ''
      (cd "$dev/include" && ln -s ImageMagick* ImageMagick)
  