2022-07-23 15:47:06 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
2024-03-10 16:46:02 +00:00
|
|
|
fetchurl,
|
2020-11-17 15:34:10 +00:00
|
|
|
pkg-config,
|
2019-10-16 20:27:43 +00:00
|
|
|
vala,
|
|
|
|
glib,
|
2019-10-16 20:52:33 +00:00
|
|
|
meson,
|
|
|
|
ninja,
|
2019-10-16 20:27:43 +00:00
|
|
|
libxslt,
|
2024-02-15 22:16:08 +00:00
|
|
|
gtk4,
|
2022-10-25 14:07:20 +00:00
|
|
|
enableBackend ? stdenv.hostPlatform.isLinux,
|
2019-10-16 20:27:43 +00:00
|
|
|
json-glib,
|
2024-08-07 13:36:04 +00:00
|
|
|
keyutils,
|
2024-02-15 22:16:08 +00:00
|
|
|
libadwaita,
|
2022-07-23 15:47:06 +00:00
|
|
|
librest_1_0,
|
|
|
|
libxml2,
|
2019-10-16 20:27:43 +00:00
|
|
|
libsecret,
|
|
|
|
gobject-introspection,
|
|
|
|
gettext,
|
2024-08-07 13:36:04 +00:00
|
|
|
gi-docgen,
|
2019-10-16 20:27:43 +00:00
|
|
|
glib-networking,
|
2022-07-23 15:47:06 +00:00
|
|
|
libsoup_3,
|
2020-11-17 15:34:10 +00:00
|
|
|
docbook-xsl-nons,
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome,
|
2024-02-15 22:16:08 +00:00
|
|
|
gcr_4,
|
2021-03-14 16:11:48 +00:00
|
|
|
libkrb5,
|
2019-10-16 20:52:33 +00:00
|
|
|
gvfs,
|
|
|
|
dbus,
|
2024-02-15 22:16:08 +00:00
|
|
|
wrapGAppsHook4,
|
2016-09-18 19:35:23 +00:00
|
|
|
}:
|
|
|
|
|
2024-03-10 16:46:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-03-15 12:24:33 +00:00
|
|
|
pname = "gnome-online-accounts";
|
2024-12-07 11:59:44 +00:00
|
|
|
version = "3.52.2";
|
2022-07-23 15:47:06 +00:00
|
|
|
|
2022-10-25 14:07:20 +00:00
|
|
|
outputs =
|
|
|
|
[
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
]
|
|
|
|
++ lib.optionals enableBackend [
|
|
|
|
"man"
|
|
|
|
"devdoc"
|
|
|
|
];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2024-03-10 16:46:02 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-online-accounts/${lib.versions.majorMinor finalAttrs.version}/gnome-online-accounts-${finalAttrs.version}.tar.xz";
|
2024-12-07 11:59:44 +00:00
|
|
|
hash = "sha256-+0E/SN7vu5/DACqRV53ulHzu7UH0nC9RMXr3SJtnb2c=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-10-16 20:52:33 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dfedora=false" # not useful in NixOS or for NixOS users.
|
2022-10-25 14:07:20 +00:00
|
|
|
"-Dgoabackend=${lib.boolToString enableBackend}"
|
2024-08-07 13:36:04 +00:00
|
|
|
"-Ddocumentation=${lib.boolToString enableBackend}"
|
2022-10-25 14:07:20 +00:00
|
|
|
"-Dman=${lib.boolToString enableBackend}"
|
2024-02-15 22:16:08 +00:00
|
|
|
"-Dwebdav=true"
|
2017-12-05 21:25:09 +00:00
|
|
|
];
|
2017-12-05 21:11:15 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-17 15:34:10 +00:00
|
|
|
dbus # used for checks and pkg-config to install dbus service/s
|
2024-08-07 13:36:04 +00:00
|
|
|
docbook-xsl-nons # for goa-daemon.xml
|
2019-10-16 20:27:43 +00:00
|
|
|
gettext
|
2024-08-07 13:36:04 +00:00
|
|
|
gi-docgen
|
2019-10-16 20:27:43 +00:00
|
|
|
gobject-introspection
|
|
|
|
libxslt
|
2019-10-16 20:52:33 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-11-17 15:34:10 +00:00
|
|
|
pkg-config
|
2019-10-16 20:27:43 +00:00
|
|
|
vala
|
2024-02-15 22:16:08 +00:00
|
|
|
wrapGAppsHook4
|
2017-12-05 21:11:15 +00:00
|
|
|
];
|
2019-10-16 20:27:43 +00:00
|
|
|
|
2017-12-05 21:11:15 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
2024-02-15 22:16:08 +00:00
|
|
|
gcr_4
|
2019-10-16 20:27:43 +00:00
|
|
|
glib
|
|
|
|
glib-networking
|
2024-02-15 22:16:08 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2019-10-16 20:52:33 +00:00
|
|
|
gvfs # OwnCloud, Google Drive
|
2019-10-16 20:27:43 +00:00
|
|
|
json-glib
|
2021-03-14 16:11:48 +00:00
|
|
|
libkrb5
|
2022-07-23 15:47:06 +00:00
|
|
|
librest_1_0
|
|
|
|
libxml2
|
2019-10-16 20:27:43 +00:00
|
|
|
libsecret
|
2022-07-23 15:47:06 +00:00
|
|
|
libsoup_3
|
2024-08-07 13:36:04 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals enableBackend [
|
|
|
|
keyutils
|
2017-12-05 21:11:15 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2024-08-07 13:36:04 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2022-12-25 18:51:08 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2018-03-15 12:24:33 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2021-10-29 10:38:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2024-03-10 16:46:02 +00:00
|
|
|
packageName = "gnome-online-accounts";
|
2018-03-15 12:24:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2024-04-30 14:44:27 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-online-accounts";
|
2019-10-16 20:27:43 +00:00
|
|
|
description = "Single sign-on framework for GNOME";
|
2022-10-25 14:07:20 +00:00
|
|
|
platforms = platforms.unix;
|
2019-10-16 20:27:43 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
2024-03-10 16:46:02 +00:00
|
|
|
})
|