anchor.diff:  
     hardeningDisable = [ "format" ];
   
  -  nativeBuildInputs = [ pkg-config intltool itstool libxml2 gobject-introspection vala autoreconfHook gtk-doc autoconf-archive yelp-tools ];
  -  buildInputs = with lib; [ gtk3 openssl libgee ]
  -    ++ optional (mysqlSupport) libmysqlclient
  -    ++ optional (postgresSupport) postgresql;
  -
     passthru = {
       updateScript = gnome3.updateScript {
         packageName = pname;
  
positive.code: { lib, stdenv, fetchurl, pkg-config, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee
  , overrideCC, gcc6, fetchpatch, autoreconfHook, gtk-doc, autoconf-archive, yelp-tools
  , mysqlSupport ? false, libmysqlclient ? null
  , postgresSupport ? false, postgresql ? null
  }:
  
  assert mysqlSupport -> libmysqlclient != null;
  
negative.code:     })
    ];
  
    nativeBuildInputs = [
      pkg-config
      intltool
      itstool
      libxml2
      gobject-introspection
      vala
      autoreconfHook
      gtk-doc
      autoconf-archive
      yelp-tools
    ];
  
    buildInputs = [
      gtk3
      openssl
      libgee
    ] ++ lib.optionals mysqlSupport [
      libmysqlclient
    ] ++ lib.optionals postgresSupport [
      postgresql
    ];
  
    configureFlags = [
      "--with-mysql=${if mysqlSupport then "yes" else "no"}"
      "--with-postgres=${if postgresSupport then "yes" else "no"}"
  
  