Jan Tojnar 2021-02-01 18:54:28 +01:00
parent e7b5ea29a0
commit 4d77a1ef39
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,92 @@
{ 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";
};
};
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;
};
}

View file

@ -14747,6 +14747,8 @@ in
libgda = callPackage ../development/libraries/libgda { }; libgda = callPackage ../development/libraries/libgda { };
libgda6 = callPackage ../development/libraries/libgda/6.x.nix { };
libgdamm = callPackage ../development/libraries/libgdamm { }; libgdamm = callPackage ../development/libraries/libgdamm { };
libgdata = callPackage ../development/libraries/libgdata { }; libgdata = callPackage ../development/libraries/libgdata { };