anchor.diff:          -i gdk-pixbuf-loader/librsvg.thumbnailer.in
     '';
   
  -  # Merge gdkpixbuf and librsvg loaders
  -  postInstall = ''
  -    mv $GDK_PIXBUF/loaders.cache $GDK_PIXBUF/loaders.cache.tmp
  -    cat ${gdk-pixbuf.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache $GDK_PIXBUF/loaders.cache.tmp > $GDK_PIXBUF/loaders.cache
  -    rm $GDK_PIXBUF/loaders.cache.tmp
  +  # Not generated when cross compiling.
  +  postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
  +    # Merge gdkpixbuf and librsvg loaders
  +    cat ${gdk-pixbuf.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache $GDK_PIXBUF/loaders.cache > $GDK_PIXBUF/loaders.cache.tmp
  +    mv $GDK_PIXBUF/loaders.cache.tmp $GDK_PIXBUF/loaders.cache
     '';
   
     passthru = {
  
positive.code: , ApplicationServices
  , Foundation
  , libobjc
  , rustc
  , cargo
  , gnome
  , vala
  , gobject-introspection
  , nixosTests
  }:
  
negative.code:   ];
  
    configureFlags = [
      (lib.enableFeature withIntrospection "introspection")
  
      # Vapi does not build on MacOS.
      # https://github.com/NixOS/nixpkgs/pull/117081#issuecomment-827782004
      (lib.enableFeature (withIntrospection && !stdenv.isDarwin) "vala")
  
      "--enable-installed-tests"
      "--enable-always-build-tests"
    ] ++ lib.optional stdenv.isDarwin "--disable-Bsymbolic";
  