nixpkgs/pkgs/by-name/gn/gnome-online-accounts/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

115 lines
2.2 KiB
Nix

{
stdenv,
lib,
fetchurl,
pkg-config,
vala,
glib,
meson,
ninja,
libxslt,
gtk4,
enableBackend ? stdenv.hostPlatform.isLinux,
json-glib,
keyutils,
libadwaita,
librest_1_0,
libxml2,
libsecret,
gobject-introspection,
gettext,
gi-docgen,
glib-networking,
libsoup_3,
docbook-xsl-nons,
gnome,
gcr_4,
libkrb5,
gvfs,
dbus,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-online-accounts";
version = "3.52.2";
outputs =
[
"out"
"dev"
]
++ lib.optionals enableBackend [
"man"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/gnome-online-accounts/${lib.versions.majorMinor finalAttrs.version}/gnome-online-accounts-${finalAttrs.version}.tar.xz";
hash = "sha256-+0E/SN7vu5/DACqRV53ulHzu7UH0nC9RMXr3SJtnb2c=";
};
mesonFlags = [
"-Dfedora=false" # not useful in NixOS or for NixOS users.
"-Dgoabackend=${lib.boolToString enableBackend}"
"-Ddocumentation=${lib.boolToString enableBackend}"
"-Dman=${lib.boolToString enableBackend}"
"-Dwebdav=true"
];
nativeBuildInputs = [
dbus # used for checks and pkg-config to install dbus service/s
docbook-xsl-nons # for goa-daemon.xml
gettext
gi-docgen
gobject-introspection
libxslt
meson
ninja
pkg-config
vala
wrapGAppsHook4
];
buildInputs =
[
gcr_4
glib
glib-networking
gtk4
libadwaita
gvfs # OwnCloud, Google Drive
json-glib
libkrb5
librest_1_0
libxml2
libsecret
libsoup_3
]
++ lib.optionals enableBackend [
keyutils
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
separateDebugInfo = true;
passthru = {
updateScript = gnome.updateScript {
versionPolicy = "odd-unstable";
packageName = "gnome-online-accounts";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-online-accounts";
description = "Single sign-on framework for GNOME";
platforms = platforms.unix;
license = licenses.lgpl2Plus;
maintainers = teams.gnome.members;
};
})