2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitLab
|
2020-11-19 00:13:47 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libxslt
|
|
|
|
, gtk3
|
2022-10-30 15:09:59 +00:00
|
|
|
, enableBackend ? stdenv.isLinux
|
2022-10-21 18:38:19 +00:00
|
|
|
, webkitgtk_4_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, json-glib
|
2022-10-21 18:38:19 +00:00
|
|
|
, librest_1_0
|
|
|
|
, libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsecret
|
|
|
|
, gtk-doc
|
|
|
|
, gobject-introspection
|
|
|
|
, gettext
|
|
|
|
, icu
|
|
|
|
, glib-networking
|
2022-10-21 18:38:19 +00:00
|
|
|
, libsoup_3
|
2020-11-19 00:13:47 +00:00
|
|
|
, docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
, docbook_xml_dtd_412
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gcr
|
2021-04-05 15:23:46 +00:00
|
|
|
, libkrb5
|
2020-04-24 23:36:52 +00:00
|
|
|
, gvfs
|
|
|
|
, dbus
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-online-accounts";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "3.48.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
outputs = [ "out" "dev" ] ++ lib.optionals enableBackend [ "man" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "gnome-online-accounts";
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-USl0Qay9pSgbbp3n/L8eBaRQwaBYledht5j+afmo++o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dfedora=false" # not useful in NixOS or for NixOS users.
|
2022-10-30 15:09:59 +00:00
|
|
|
"-Dgoabackend=${lib.boolToString enableBackend}"
|
|
|
|
"-Dgtk_doc=${lib.boolToString enableBackend}"
|
|
|
|
"-Dman=${lib.boolToString enableBackend}"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Dmedia_server=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-19 00:13:47 +00:00
|
|
|
dbus # used for checks and pkg-config to install dbus service/s
|
2020-04-24 23:36:52 +00:00
|
|
|
docbook_xml_dtd_412
|
2020-11-19 00:13:47 +00:00
|
|
|
docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
2020-11-19 00:13:47 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcr
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gtk3
|
|
|
|
gvfs # OwnCloud, Google Drive
|
|
|
|
icu
|
|
|
|
json-glib
|
2021-04-05 15:23:46 +00:00
|
|
|
libkrb5
|
2022-10-21 18:38:19 +00:00
|
|
|
librest_1_0
|
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
libsecret
|
2022-10-21 18:38:19 +00:00
|
|
|
libsoup_3
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals enableBackend [
|
2022-10-21 18:38:19 +00:00
|
|
|
webkitgtk_4_1
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2021-12-06 16:07:01 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/GnomeOnlineAccounts";
|
|
|
|
description = "Single sign-on framework for GNOME";
|
2022-10-30 15:09:59 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|