anchor.diff:      postgresql
       readline
       sqlite
  -    #vala
  +    vala
     ];
  +
  +  autoreconfPhase = ''
  +    sed -i autogen.sh -e 's/which/type/'
  +    ./autogen.sh
  +  '';
   
     configureFlags = [
       "--enable-nls"
  -    "--enable-tools"
  +    "--disable-tools"  # ui
       "--enable-json"
  -    (enFlag "introspection" (gobject-introspection != null) null)
  -    (enFlag "gda-gi" (gobject-introspection != null) null)
  -    (enFlag "gdaui-gi" (gobject-introspection != null) null)
  -    (enFlag "gi-system-install" (gobject-introspection != null) null)
  -    #(enFlag "gdaui-vala" (vala != null) null)
  -    #(enFlag "vala-extensions" (vala != null) null)
  -    #(enFlag "vala" (vala != null) null)
  -    (enFlag "crypto" (openssl != null) null)
  +    "--${boolEn (gobject-introspection != null)}-introspection"
  +    "--${boolEn (gobject-introspection != null)}-gda-gi"
  +    #"--${boolEn (gobject-introspection != null)}-gdaui-gi"
  +    "--disable-gda-ui"  # ui
  +    "--${boolEn (gobject-introspection != null)}-gi-system-install"
  +    #"--${boolEn (vala != null)}-gdaui-vala"
  +    "--${boolEn (vala != null)}-vala-extensions"
  +    "--${boolEn (vala != null)}-vala"
  +    "--${boolEn (openssl != null)}-crypto"
       "--disable-gtk-doc"
       "--disable-gtk-doc-html"
       "--disable-gtk-doc-pdf"
  
positive.code: { stdenv
  , fetchurl
  , intltool
  , itstool
  
  , atk
  , db
  
negative.code: , postgresql
  , readline
  , sqlite
  , vala
  }:
  
  let
    inherit (lib)
      boolEn
      boolWt;
  
      version = "2017-11-03";
  in
  stdenv.mkDerivation rec {
    name = "libgda-${version}";
  
    # A release has not been tagged since 2015
    src = fetchFromGitHub {
      version = 3;
      owner = "GNOME";
      repo = "libgda";
      rev = "567e359987e18128eaa824062f64218734aef200";
      sha256 = "910feac0605341b869bdd105eae15f024c0a5e4d404ff03f58b977c2998ae83f";
    };
  
    nativeBuildInputs = [
      autoreconfHook
      gnome-common
      gtk-doc
      intltool
      itstool
    ];
  