anchor.diff:        codyopel
       ];
       platforms = with platforms;
  -      i686-linux
  -      ++ x86_64-linux;
  +      x86_64-linux;
     };
   
   }
  
positive.code: , p11_kit
  , python
  , sqlite
  # Optional
  , vala
  , zlib
  }:
  
  with {
    inherit (stdenv.lib)
      enFlag;
  };
  
  stdenv.mkDerivation rec {
    name = "evolution-data-server-${version}";
    versionMajor = "3.18";
    versionMinor = "4";
    version = "${versionMajor}.${versionMinor}";
  
    src = fetchurl {
      url = "mirror://gnome/sources/evolution-data-server/${versionMajor}/" +
            "${name}.tar.xz";
      sha256 = "0b756f05feae538676832acc122407046a89d4dd32da725789229dc3c416433f";
    };
  
    nativeBuildInputs = [
  
negative.code:     "--disable-gtk-doc"
      "--disable-gtk-doc-html"
      "--disable-gtk-doc-pdf"
      (enFlag "gtk" (gtk3 != null) null)
      # TODO: add google auth support
      "--disable-google-auth"
      "--disable-examples"
      (enFlag "goa" (gnome-online-accounts != null) null)
      # TODO: requires libsignon-glib (Ubuntu online accounts)
      "--disable-uoa"
      "--enable-backend-per-process"
      "--disable-backtraces"
      (enFlag "smime" (nss != null) null)
      "--enable-ipv6"
      (enFlag "weather" (libgweather != null) null)
      "--enable-dot-locking"
      "--enable-file-locking"
      "--disable-purify"
      "--enable-google"
      "--enable-largefile"
      "--enable-glibtest"
      (enFlag "introspection" (gobject-introspection != null) null)
      (enFlag "vala-bindings" (vala != null) null)
      # TODO: libphonenumber support
      "--without-phonenumber"
      "--without-private-docs"
      (wtFlag "libdb" (db != null) "${db}")
      (wtFlag "krb5" (kerberos != null) "${kerberos}")
      (wtFlag "openldap" (openldap != null) null)
      "--without-static-ldap"
      "--without-sunldap"
      "--without-static-sunldap"
  