11 , enableBackend ? stdenv.hostPlatform.isLinux
18 , gobject-introspection
32 stdenv.mkDerivation (finalAttrs: {
33 pname = "gnome-online-accounts";
36 outputs = [ "out" "dev" ] ++ lib.optionals enableBackend [ "man" "devdoc" ];
39 url = "mirror://gnome/sources/gnome-online-accounts/${lib.versions.majorMinor finalAttrs.version}/gnome-online-accounts-${finalAttrs.version}.tar.xz";
40 hash = "sha256-N8dSL/lFT4NxtahyW7p27XQwyVsfnvx/66YmjwUtHrc=";
44 "-Dfedora=false" # not useful in NixOS or for NixOS users.
45 "-Dgoabackend=${lib.boolToString enableBackend}"
46 "-Ddocumentation=${lib.boolToString enableBackend}"
47 "-Dman=${lib.boolToString enableBackend}"
52 dbus # used for checks and pkg-config to install dbus service/s
53 docbook-xsl-nons # for goa-daemon.xml
71 gvfs # OwnCloud, Google Drive
78 ] ++ lib.optionals enableBackend [
83 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
84 moveToOutput "share/doc" "$devdoc"
87 separateDebugInfo = true;
90 updateScript = gnome.updateScript {
91 versionPolicy = "odd-unstable";
92 packageName = "gnome-online-accounts";
97 homepage = "https://gitlab.gnome.org/GNOME/gnome-online-accounts";
98 description = "Single sign-on framework for GNOME";
99 platforms = platforms.unix;
100 license = licenses.lgpl2Plus;
101 maintainers = teams.gnome.members;