diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2021-02-01 18:54:28 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-02-01 20:14:51 +0100 |
commit | 4d77a1ef3948357fec9b68fbf33d173e4a4a90de (patch) | |
tree | 0975481b1bb5ed2f12763992a08813f033f618dd /pkgs/development/libraries/libgda/6.x.nix | |
parent | e7b5ea29a036367afedcc007a20c477adfb3ff6c (diff) |
libgda6: init at 6.0.0
https://blogs.gnome.org/despinosa/2021/01/31/gnome-data-access-6-0-released/ https://gitlab.gnome.org/GNOME/libgda/-/blob/LIBGDA_6_0_0/NEWS#L1-92
Diffstat (limited to 'pkgs/development/libraries/libgda/6.x.nix')
-rw-r--r-- | pkgs/development/libraries/libgda/6.x.nix | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libgda/6.x.nix b/pkgs/development/libraries/libgda/6.x.nix new file mode 100644 index 0000000000000..fc24fe41c4d33 --- /dev/null +++ b/pkgs/development/libraries/libgda/6.x.nix @@ -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; + }; +} |