anchor.diff: -{ stdenv, fetchurl, substituteAll, pkgconfig, intltool, babl, gegl, gtk2, glib, gdk-pixbuf, isocodes
  -, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, poppler_data, libtiff
  -, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, shared-mime-info
  -, python2Packages, libexif, gettext, xorg, glib-networking, libmypaint, gexiv2
  -, harfbuzz, mypaint-brushes, libwebp, libheif, libgudev, openexr
  -, AppKit, Cocoa, gtk-mac-integration-gtk2 }:
  +{ stdenv
  +, lib
  +, fetchurl
  +, substituteAll
  +, pkgconfig
  +, intltool
  +, babl
  +, gegl
  +, gtk2
  +, glib
  +, gdk-pixbuf
  +, isocodes
  +, pango
  +, cairo
  +, freetype
  +, fontconfig
  +, lcms
  +, libpng
  +, libjpeg
  +, poppler
  +, poppler_data
  +, libtiff
  +, libmng
  +, librsvg
  +, libwmf
  +, zlib
  +, libzip
  +, ghostscript
  +, aalib
  +, shared-mime-info
  +, python2Packages
  +, libexif
  +, gettext
  +, xorg
  +, glib-networking
  +, libmypaint
  +, gexiv2
  +, harfbuzz
  +, mypaint-brushes
  +, libwebp
  +, libheif
  +, libgudev
  +, openexr
  +, AppKit
  +, Cocoa
  +, gtk-mac-integration-gtk2
  +}:
   
   let
     inherit (python2Packages) pygtk wrapPython python;
  
positive.code: 
    enableParallelBuilding = true;
  
    meta = with stdenv.lib; {
      description = "The GNU Image Manipulation Program";
      homepage = https://www.gimp.org/;
      maintainers = with maintainers; [ jtojnar ];
      license = licenses.gpl3Plus;
      platforms = platforms.unix;
  
negative.code:   version = "2.10.14";
  
    src = fetchurl {
      url = "http://download.gimp.org/pub/gimp/v${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
      sha256 = "0m6wdnfvsxyhimdd4v3351g4r1fklllnbipbwcfym3h7q88hz6yz";
    };
  
    nativeBuildInputs = [
      pkgconfig
      intltool
      gettext
      wrapPython
    ];
  
    buildInputs = [
      babl
      gegl
      gtk2
      glib
      gdk-pixbuf
      pango
      cairo
      gexiv2
      harfbuzz
      isocodes
      freetype
      fontconfig
      lcms
      libpng
      libjpeg
      poppler
      poppler_data
      libtiff
      openexr
      libmng
      librsvg
      libwmf
      zlib
      libzip
      ghostscript
      aalib
      shared-mime-info
      libwebp
      libheif
      python
      pygtk
      libexif
      xorg.libXpm
      glib-networking
      libmypaint
      mypaint-brushes
    ] ++ lib.optionals stdenv.isDarwin [
      AppKit
      Cocoa
      gtk-mac-integration-gtk2
    ] ++ lib.optionals stdenv.isLinux [
      libgudev
    ];
  
    # needed by gimp-2.0.pc
    propagatedBuildInputs = [
      gegl
    ];
  
    pythonPath = [ pygtk ];
  
  