anchor.diff: -{ stdenv, fetchurl, lib, pam, python3, libxslt, perl, ArchiveZip, box2d, gettext
  -, IOCompress, zlib, libjpeg, expat, freetype, libwpd
  -, libxml2, db, curl, fontconfig, libsndfile, neon
  -, bison, flex, zip, unzip, gtk3, libmspack, getopt, file, cairo, which
  -, icu, boost, jdk, ant, cups, xorg, fontforge, jre_minimal
  -, openssl, gperf, cppunit, poppler, util-linux
  -, librsvg, libGLU, libGL, bsh, CoinMP, libwps, libabw, libmysqlclient
  -, autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr
  -, libwpg, dbus-glib, clucene_core, libcdr, lcms
  -, unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio
  -, fontsConf, pkg-config, bluez5, libtool, carlito
  -, libatomic_ops, graphite2, harfbuzz, libodfgen, libzmf
  -, librevenge, libe-book, libmwaw, glm, gst_all_1
  -, gdb, commonsLogging, librdf_rasqal, wrapGAppsHook
  -, gnome, glib, ncurses, libepoxy, gpgme, abseil-cpp
  +{ stdenv
  +, fetchurl
  +, lib
  +, pam
  +, python3
  +, libxslt
  +, perl
  +, ArchiveZip
  +, box2d
  +, gettext
  +, IOCompress
  +, zlib
  +, libjpeg
  +, expat
  +, freetype
  +, libwpd
  +, libxml2
  +, db
  +, curl
  +, fontconfig
  +, libsndfile
  +, neon
  +, bison
  +, flex
  +, zip
  +, unzip
  +, gtk3
  +, libmspack
  +, getopt
  +, file
  +, cairo
  +, which
  +, icu
  +, boost
  +, jdk
  +, ant
  +, cups
  +, xorg
  +, fontforge
  +, jre_minimal
  +, openssl
  +, gperf
  +, cppunit
  +, poppler
  +, util-linux
  +, librsvg
  +, libGLU
  +, libGL
  +, bsh
  +, CoinMP
  +, libwps
  +, libabw
  +, libmysqlclient
  +, autoconf
  +, automake
  +, openldap
  +, bash
  +, hunspell
  +, librdf_redland
  +, nss
  +, nspr
  +, libwpg
  +, dbus-glib
  +, clucene_core
  +, libcdr
  +, lcms
  +, unixODBC
  +, mdds
  +, sane-backends
  +, mythes
  +, libexttextcat
  +, libvisio
  +, fontsConf
  +, pkg-config
  +, bluez5
  +, libtool
  +, carlito
  +, libatomic_ops
  +, graphite2
  +, harfbuzz
  +, libodfgen
  +, libzmf
  +, librevenge
  +, libe-book
  +, libmwaw
  +, glm
  +, gst_all_1
  +, gdb
  +, commonsLogging
  +, librdf_rasqal
  +, wrapGAppsHook
  +, gnome
  +, glib
  +, ncurses
  +, libepoxy
  +, gpgme
  +, abseil-cpp
   , langs ? [ "ca" "cs" "da" "de" "en-GB" "en-US" "eo" "es" "fr" "hu" "it" "ja" "nl" "pl" "pt" "pt-BR" "ro" "ru" "sl" "uk" "zh-CN" ]
   , withHelp ? true
  -, kdeIntegration ? false, mkDerivation ? null, qtbase ? null, qtx11extras ? null
  -, ki18n ? null, kconfig ? null, kcoreaddons ? null, kio ? null, kwindowsystem ? null
  +, kdeIntegration ? false
  +, mkDerivation ? null
  +, qtbase ? null
  +, qtx11extras ? null
  +, ki18n ? null
  +, kconfig ? null
  +, kcoreaddons ? null
  +, kio ? null
  +, kwindowsystem ? null
   , wrapQtAppsHook ? null
   , variant ? "fresh"
  +, symlinkJoin
   } @ args:
   
   assert builtins.elem variant [ "fresh" "still" ];
   
   let
  +  inherit (lib)
  +    flatten flip
  +    concatMapStrings concatMapStringsSep concatStringsSep
  +    getDev getLib
  +    optional optionals optionalString;
  +
     jre' = jre_minimal.override {
       modules = [ "java.base" "java.desktop" "java.logging" ];
     };
  
positive.code:     substituteInPlace configure.ac --replace \
        'GPGMEPP_CFLAGS=-I/usr/include/gpgme++' \
        'GPGMEPP_CFLAGS=-I${gpgme.dev}/include/gpgme++'
    '' + lib.optionalString kdeIntegration ''
        substituteInPlace configure.ac \
          --replace kcoreaddons_version.h KCoreAddons/kcoreaddons_version.h \
          --replace '$QT5INC'             ${qtbase.dev}/include \
          --replace '$QT5LIB'             ${qtbase.out}/lib \
          --replace '-I$qt5_incdir '      '-I${qtx11extras.dev}/include '\
          --replace '-L$qt5_libdir '      '${libs [ qtbase qtx11extras ]} ' \
          --replace '$KF5INC'             ${kcoreaddons.dev}/include \
          --replace '$KF5LIB'             ${kcoreaddons.out}/lib \
          --replace '$kf5_incdir/KCore'   ${inc kcoreaddons "KCore"} \
          --replace '$kf5_incdir/KI18n'   ${inc ki18n "KI18n"} \
          --replace '$kf5_incdir/KConfig' ${inc kconfig "KConfig"} \
          --replace '$kf5_incdir/KWindow' ${inc kwindowsystem "KWindow"} \
          --replace '$kf5_incdir/KIO'     ${inc kio "KIO"} \
          --replace '-L$kf5_libdir '      '${libs [ kconfig kcoreaddons ki18n kio kwindowsystem ]} '
    '';
  
    dontUseCmakeConfigure = true;
  
negative.code:     "--enable-dbus"
      "--enable-release-build"
      "--enable-epm"
      "--with-ant-home=${getLib ant}/lib/ant"
      "--with-system-cairo"
      "--with-system-libs"
      "--with-system-headers"
  