anchor.diff:  , dbus
   , libgee
   , evolution-data-server
  +, libgdata
   , libsecret
   , db
   , python3
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "folks";
    version = "0.14.0";
  
    outputs = [ "out" "dev" "devdoc" ];
  
    src = fetchurl {
      url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
      sha256 = "1f9b52vmwnq7s51vj26w2618dn2ph5g12ibbkbyk6fvxcgd7iryn";
    };
  
    patches = [
      # Fix tests with e-d-s linked with libphonenumber support
      # https://gitlab.gnome.org/GNOME/folks/merge_requests/40
      (fetchpatch {
        url = "https://gitlab.gnome.org/GNOME/folks/commit/6d443480a137f6a6ff345b21bf3cb31066eefbcd.patch";
        sha256 = "D/Y2g12TT0qrcH+iJ2umu4Hmp0EJ3Hoedh0H3aWI+HY=";
      })
    ];
  
    mesonFlags = [
      "-Ddocs=true"
      "-Dtelepathy_backend=${lib.boolToString telepathySupport}"
    ];
  
    nativeBuildInputs = [
      gettext
  
negative.code:     ]))
    ];
  
    mesonFlags = [
      "-Ddocs=true"
      "-Dtelepathy_backend=${lib.boolToString telepathySupport}"
      # For some reason, the tests are getting stuck on 31/32,
      # even though the one missing test finishes just fine on next run,
      # when tests are permuted differently. And another test that
      # previously passed will be stuck instead.
      "-Dtests=false"
    ];
  
    doCheck = false;
  
    # Prevents e-d-s add-contacts-stress-test from timing out
    checkPhase = ''
  