1{ lib, stdenv, fetchurl, pkg-config, glibmm, libgda, libxml2, gnome
2, mysqlSupport ? false
3, postgresSupport ? false }:
4
5let
6 gda = libgda.override {
7 inherit mysqlSupport postgresSupport;
8 };
9in stdenv.mkDerivation rec {
10 pname = "libgdamm";
11 version = "4.99.11";
12
13 outputs = [ "out" "dev" ];
14
15 src = fetchurl {
16 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
17 sha256 = "1fyh15b3f8hmwbswalxk1g4l04yvvybksn5nm7gznn5jl5q010p9";
18 };
19
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ glibmm libxml2 ];
22 propagatedBuildInputs = [ gda ];
23
24 enableParallelBuilding = true;
25
26 passthru = {
27 updateScript = gnome.updateScript {
28 packageName = pname;
29 versionPolicy = "none"; # Should be odd-unstable but stable version has not been released yet.
30 };
31 };
32
33 meta = with lib; {
34 description = "C++ bindings for libgda";
35 homepage = "https://www.gnome-db.org/";
36 license = licenses.lgpl21Plus;
37 maintainers = teams.gnome.members;
38 platforms = platforms.linux;
39 };
40}