anchor.diff:      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 == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin" then "aarch64"
       else if stdenv.hostPlatform.system == "powerpc64le-linux" then "ppc64le"
       else null;
   in
  
positive.code:     ];
  
    propagatedBuildInputs =
      [ bzip2 freetype libjpeg lcms2 ]
      ++ lib.optionals (!stdenv.hostPlatform.isMinGW)
        [ libX11 libXext libXt libwebp ]
      ;
  
    postInstall = ''
      (cd "$dev/include" && ln -s ImageMagick* ImageMagick)
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , pkg-config
  , libtool
  , bzip2
  , zlib
  , libX11
  , libXext
  , libXt
  , fontconfig
  , freetype
  , ghostscript
  , libjpeg
  , djvulibre
  , lcms2
  , openexr
  , libjxl
  , libpng
  , liblqr1
  , libraw
  , librsvg
  , libtiff
  , libxml2
  , openjpeg
  , libwebp
  , libheif
  , potrace
  , curl
  , ApplicationServices
  , Foundation
  , testVersion
  , imagemagick
  }:
  
  let
  