libgda: clean up the expression

This will make the diff against libgda6 smaller.
This commit is contained in:
Jan Tojnar 2021-02-01 18:59:24 +01:00
parent 21b5924f24
commit e7b5ea29a0
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,7 +1,27 @@
{ lib, stdenv, fetchurl, pkg-config, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee { lib
, overrideCC, gcc6, fetchpatch, autoreconfHook, gtk-doc, autoconf-archive, yelp-tools , stdenv
, mysqlSupport ? false, libmysqlclient ? null , fetchurl
, postgresSupport ? false, postgresql ? null , pkg-config
, intltool
, itstool
, libxml2
, gtk3
, openssl
, gnome3
, gobject-introspection
, vala
, libgee
, overrideCC
, gcc6
, fetchpatch
, autoreconfHook
, gtk-doc
, autoconf-archive
, yelp-tools
, mysqlSupport ? false
, libmysqlclient ? null
, postgresSupport ? false
, postgresql ? null
}: }:
assert mysqlSupport -> libmysqlclient != null; assert mysqlSupport -> libmysqlclient != null;
@ -24,7 +44,30 @@ assert postgresSupport -> postgresql != null;
}) })
]; ];
configureFlags = with lib; [ nativeBuildInputs = [
pkg-config
intltool
itstool
libxml2
gobject-introspection
vala
autoreconfHook
gtk-doc
autoconf-archive
yelp-tools
];
buildInputs = [
gtk3
openssl
libgee
] ++ lib.optionals mysqlSupport [
libmysqlclient
] ++ lib.optionals postgresSupport [
postgresql
];
configureFlags = [
"--with-mysql=${if mysqlSupport then "yes" else "no"}" "--with-mysql=${if mysqlSupport then "yes" else "no"}"
"--with-postgres=${if postgresSupport then "yes" else "no"}" "--with-postgres=${if postgresSupport then "yes" else "no"}"
@ -40,11 +83,6 @@ assert postgresSupport -> postgresql != null;
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
nativeBuildInputs = [ pkg-config intltool itstool libxml2 gobject-introspection vala autoreconfHook gtk-doc autoconf-archive yelp-tools ];
buildInputs = with lib; [ gtk3 openssl libgee ]
++ optional (mysqlSupport) libmysqlclient
++ optional (postgresSupport) postgresql;
passthru = { passthru = {
updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
packageName = pname; packageName = pname;
@ -54,8 +92,13 @@ assert postgresSupport -> postgresql != null;
meta = with lib; { meta = with lib; {
description = "Database access library"; description = "Database access library";
homepage = "https://www.gnome-db.org/"; homepage = "https://www.gnome-db.org/";
license = [ licenses.lgpl2 licenses.gpl2 ]; license = with licenses; [
# library
lgpl2Plus
# CLI tools
gpl2Plus
];
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.unix;
}; };
} }