anchor.diff:      "--enable-dbus"
       "--enable-release-build"
       "--enable-epm"
  -    "--with-ant-home=${ant}/lib/ant"
  +    "--with-ant-home=${getLib ant}/lib/ant"
       "--with-system-cairo"
       "--with-system-libs"
       "--with-system-headers"
  
positive.code:     # https://github.com/NixOS/nixpkgs/commit/5c5362427a3fa9aefccfca9e531492a8735d4e6f
      "--without-system-orcus"
      "--without-system-xmlsec"
    ] ++ lib.optionals kdeIntegration [
      "--enable-kf5"
      "--enable-qt5"
      "--enable-gtk3-kde5"
    ];
  
    checkPhase = ''
      make unitcheck
      make slowcheck
    '';
  
    nativeBuildInputs = [
      gdb fontforge autoconf automake bison pkg-config libtool jdk
    ] ++ lib.optional (!kdeIntegration) wrapGAppsHook
      ++ lib.optional kdeIntegration wrapQtAppsHook;
  
    buildInputs = with xorg;
      [ ant ArchiveZip boost box2d cairo clucene_core
        IOCompress cppunit cups curl db dbus-glib expat file flex fontconfig
        freetype getopt gperf gtk3
        hunspell icu jre' lcms libcdr libexttextcat unixODBC libjpeg
        libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
        libXaw libXext libXi libXinerama libxml2 libxslt libXtst
        libXdmcp libpthreadstubs libGLU libGL mythes
        glib libmysqlclient
        neon nspr nss openldap openssl pam perl pkg-config poppler
        python3 sane-backends unzip which zip zlib
        mdds bluez5 libwps libabw libzmf
        libxshmfence libatomic_ops graphite2 harfbuzz gpgme util-linux
        librevenge libe-book libmwaw glm ncurses libepoxy
        libodfgen CoinMP librdf_rasqal gnome.adwaita-icon-theme gettext abseil-cpp
      ]
      ++ (with gst_all_1; [
        gstreamer
        gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
        gst-libav
      ])
      ++ lib.optional kdeIntegration [ qtbase qtx11extras kcoreaddons kio ];
  
    passthru = {
      inherit srcs;
  
negative.code:     ''
      # This to avoid using /lib:/usr/lib at linking
      + ''
        sed -i '/gb_LinkTarget_LDFLAGS/{ n; /rpath-link/d;}' solenv/gbuild/platform/unxgcc.mk
  
        find -name "*.cmd" -exec sed -i s,/lib:/usr/lib,, {} \;
      '';
  
    makeFlags = [ "SHELL=${bash}/bin/bash" ];
  
    enableParallelBuilding = true;
  
    buildTargets = [ "build-nocheck" ];
  
    doCheck = true;
  
  