anchor.diff:      done
     '';
   
  +  preInstall = ''
  +    PATH=$PATH:$out/bin # for install script
  +  '';
  +
     # The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
     inherit doCheck;
   
  
positive.code: { stdenv, fetchurl, fetchFromGitLab, fetchpatch, fixDarwinDylibNames, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
  , docbook_xml_dtd_43, gtk-doc, glib, libtiff, libjpeg, libpng, libX11, gnome3
  , jasper, gobjectIntrospection, doCheck ? false, makeWrapper }:
  
  let
    pname = "gdk-pixbuf";
    version = "2.36.12";
  in
  stdenv.mkDerivation rec {
    name = "${pname}-${version}";
  
    # TODO: Change back once tests/bug753605-atsize.jpg is part of the dist tarball
    # src = fetchurl {
    #   url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
    #   sha256 = "0d534ysa6n9prd17wwzisq7mj6qkhwh8wcf8qgin1ar3hbs5ry7z";
    # };
    src = fetchFromGitLab {
      domain = "gitlab.gnome.org";
      owner = "GNOME";
      repo = "gdk-pixbuf";
      rev = version;
      sha256 = "18lwqg63vyap2m1mw049rnb8fm869429xbf7636a2n21gs3d3jwv";
    };
  
    patches = [
  
negative.code:     # For now, we are patching the build script to avoid the dependency.
      ./no-mime-sniffing.patch
  
      # Move installed tests to a separate output
      ./installed-tests-path.patch
  
      (fetchpatch {
        url = https://gitlab.gnome.org/GNOME/gdk-pixbuf/commit/a7d582f75a71320554b881e063a65f4ced679c1c.patch;
        sha256 = "0z0w52bh4hcrdllbgrqvh12iqzr7k1pb0wdr9vz2qslg1kjk4j92";
      })
    ];
  
    outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
  