@@ -1,42 +1,94 @@
1−{ stdenv, fetchurl, pkgconfig, vala, glib, libxslt, gtk3, wrapGAppsHook
2−, webkitgtk, json-glib, librest, libsecret, gtk-doc, gobject-introspection
3−, gettext, icu, glib-networking
4−, libsoup, docbook_xsl, docbook_xml_dtd_412, gnome3, gcr, kerberos
1+{ stdenv
2+, fetchFromGitLab
3+, pkgconfig
4+, vala
5+, glib
6+, meson
7+, ninja
8+, python3
9+, libxslt
10+, gtk3
11+, webkitgtk
12+, json-glib
13+, librest
14+, libsecret
15+, gtk-doc
16+, gobject-introspection
17+, gettext
18+, icu
19+, glib-networking
20+, libsoup
21+, docbook_xsl
22+, docbook_xml_dtd_412
23+, gnome3
24+, gcr
25+, kerberos
26+, gvfs
27+, dbus
28+, wrapGAppsHook
529}:
630
7−let
31+stdenv.mkDerivation rec {
832 pname = "gnome-online-accounts";
9− version = "3.34.0";
10−in stdenv.mkDerivation rec {
11− name = "${pname}-${version}";
33+ version = "3.34.1";
1234
13− src = fetchurl {
14− url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
15− sha256 = "0mvz6wrw03zyp5sm46znkipncagb257xam29mfi06ixmxvjbqky4";
35+ # https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/87
36+ src = fetchFromGitLab {
37+ domain = "gitlab.gnome.org";
38+ owner = "GNOME";
39+ repo = "gnome-online-accounts";
40+ rev = version;
41+ sha256 = "0ry06qw068rqn4y42953kwl6fkxpgfya58y87cd3zink6gj7q0fm";
1642 };
1743
1844 outputs = [ "out" "man" "dev" "devdoc" ];
1945
20− configureFlags = [
21− "--enable-media-server"
22− "--enable-kerberos"
23− "--enable-lastfm"
24− "--enable-todoist"
25− "--enable-gtk-doc"
26− "--enable-documentation"
46+ mesonFlags = [
47+ "-Dfedora=false" # not useful in NixOS or for NixOS users.
48+ "-Dgtk_doc=true"
49+ "-Dlastfm=true"
50+ "-Dman=true"
51+ "-Dmedia_server=true"
2752 ];
2853
29− enableParallelBuilding = true;
30−
3154 nativeBuildInputs = [
32− pkgconfig gobject-introspection vala gettext wrapGAppsHook
33− libxslt docbook_xsl docbook_xml_dtd_412 gtk-doc
55+ dbus # used for checks and pkgconfig to install dbus service/s
56+ docbook_xml_dtd_412
57+ docbook_xsl
58+ gettext
59+ gobject-introspection
60+ gtk-doc
61+ libxslt
62+ meson
63+ ninja
64+ pkgconfig
65+ python3
66+ vala
67+ wrapGAppsHook
3468 ];
69+
3570 buildInputs = [
36− glib gtk3 webkitgtk json-glib librest libsecret glib-networking icu libsoup
37− gcr kerberos
71+ gcr
72+ glib
73+ glib-networking
74+ gtk3
75+ gvfs # OwnCloud, Google Drive
76+ icu
77+ json-glib
78+ kerberos
79+ librest
80+ libsecret
81+ libsoup
82+ webkitgtk
3883 ];
3984
85+ NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
86+
87+ postPatch = ''
88+ chmod +x meson_post_install.py
89+ patchShebangs meson_post_install.py
90+ '';
91+
4092 passthru = {
4193 updateScript = gnome3.updateScript {
4294 packageName = pname;
@@ -45,7 +97,10 @@ in stdenv.mkDerivation rec {
4597 };
4698
4799 meta = with stdenv.lib; {
100+ homepage = "https://wiki.gnome.org/Projects/GnomeOnlineAccounts";
101+ description = "Single sign-on framework for GNOME";
48102 platforms = platforms.linux;
103+ license = licenses.lgpl2Plus;
49104 maintainers = gnome3.maintainers;
50105 };
51106}