18 gobject-introspection,
25 libmysqlclient ? null,
26 postgresSupport ? false,
30 assert mysqlSupport -> libmysqlclient != null;
31 assert postgresSupport -> postgresql != null;
33 stdenv.mkDerivation rec {
38 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
39 sha256 = "0w564z7krgjk19r39mi5qn4kggpdg9ggbyn9pb4aavb61r14npwr";
43 # Fix undefined behavior
45 url = "https://gitlab.gnome.org/GNOME/libgda/-/commit/657b2f8497da907559a6769c5b1d2d7b5bd40688.patch";
46 sha256 = "Qx4S9KQsTAr4M0QJi0Xr5kKuHSp4NwZJHoRPYyxIyTk=";
51 url = "https://gitlab.gnome.org/GNOME/libgda/-/commit/57f618a3b2a3758ee3dcbf9bbdc566122dd8566d.patch";
52 sha256 = "pyfymUd61m1kHaGyMbUQMma+szB8mlqGWwcFBBQawf8=";
56 name = "CVE-2021-39359.patch";
57 url = "https://gitlab.gnome.org/GNOME/libgda/-/commit/bebdffb4de586fb43fd07ac549121f4b22f6812d.patch";
58 sha256 = "sha256-UjHP1nhb5n6TOdaMdQeE2s828T4wv/0ycG3FAk+I1QA=";
85 ++ lib.optionals mysqlSupport [
88 ++ lib.optionals postgresSupport [
92 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
96 providers/raw_spec.py \
97 providers/mysql/gen_bin.py
101 updateScript = gnome.updateScript {
103 attrPath = "libgda6";
104 versionPolicy = "odd-unstable";
109 description = "Database access library";
110 homepage = "https://www.gnome-db.org/";
111 license = with licenses; [
117 maintainers = teams.gnome.members;
118 platforms = platforms.unix;