1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{ lib
, stdenv
, fetchurl
, pkg-config
, intltool
, meson
, ninja
, itstool
, libxml2
, python3
, gtk3
, json-glib
, isocodes
, openssl
, gnome3
, gobject-introspection
, vala
, libgee
, sqlite
, gtk-doc
, yelp-tools
, mysqlSupport ? false
, libmysqlclient ? null
, postgresSupport ? false
, postgresql ? null
}:
assert mysqlSupport -> libmysqlclient != null;
assert postgresSupport -> postgresql != null;
stdenv.mkDerivation rec {
pname = "libgda";
version = "6.0.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0w564z7krgjk19r39mi5qn4kggpdg9ggbyn9pb4aavb61r14npwr";
};
nativeBuildInputs = [
pkg-config
intltool
meson
ninja
itstool
libxml2
python3
gobject-introspection
vala
gtk-doc
yelp-tools
];
buildInputs = [
gtk3
json-glib
isocodes
openssl
libgee
sqlite
] ++ lib.optionals mysqlSupport [
libmysqlclient
] ++ lib.optionals postgresSupport [
postgresql
];
postPatch = ''
patchShebangs \
providers/raw_spec.py \
providers/mysql/gen_bin.py
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "libgda6";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Database access library";
homepage = "https://www.gnome-db.org/";
license = with licenses; [
# library
lgpl2Plus
# CLI tools
gpl2Plus
];
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}
|