anchor.diff:  , lib
   }:
   
  +let
  +  withGtkDoc = stdenv.buildPlatform == stdenv.hostPlatform;
  +in
   stdenv.mkDerivation rec {
     pname = "gdk-pixbuf";
     version = "2.42.6";
   
  -  outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
  +  outputs = [ "out" "dev" "man" ]
  +    ++ lib.optional withGtkDoc "devdoc"
  +    ++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) "installedTests";
   
     src = fetchurl {
       url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
  
positive.code:   ];
  
    mesonFlags = [
      "-Dgtk_doc=true"
      "-Dintrospection=${if gobject-introspection != null then "enabled" else "disabled"}"
      "-Dgio_sniffing=false"
    ];
  
  
negative.code:       moveToOutput "bin" "$dev"
        moveToOutput "bin/gdk-pixbuf-thumbnailer" "$out"
  
      '' + lib.optionalString stdenv.isDarwin ''
        # meson erroneously installs loaders with .dylib extension on Darwin.
        # Their @rpath has to be replaced before gdk-pixbuf-query-loaders looks at them.
  