anchor.diff:  
     inherit (primary-src) major minor subdir version;
   
  -  lib = stdenv.lib;
     langsSpaces = lib.concatStringsSep " " langs;
   
     mkDrv = if kdeIntegration then mkDerivation else stdenv.mkDerivation;
  
positive.code:   # are in multiple directories due to each having their own derivation.
    postPatch = let
      inc = e: path:
        "${e.dev}/include/KF5/${path}";
      libs = list:
        lib.concatMapStringsSep " " (e: "-L${e.out}/lib") list;
    in ''
      substituteInPlace shell/source/unix/exec/shellexec.cxx \
        --replace /usr/bin/xdg-open ${if kdeIntegration then "kde-open5" else "xdg-open"}
  
negative.code: { stdenv, fetchurl, fetchpatch, lib, pam, python3, libxslt, perl, ArchiveZip, gettext
  , IOCompress, zlib, libjpeg, expat, freetype, libwpd
  , libxml2, db, curl, fontconfig, libsndfile, neon
  , bison, flex, zip, unzip, gtk3, libmspack, getopt, file, cairo, which
  