mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 23:13:56 +00:00
4f0dadbf38
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-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
129 lines
2.8 KiB
Nix
129 lines
2.8 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
pkg-config,
|
|
meson,
|
|
ninja,
|
|
glib,
|
|
gnome,
|
|
gettext,
|
|
gobject-introspection,
|
|
vala,
|
|
sqlite,
|
|
dbus-glib,
|
|
dbus,
|
|
libgee,
|
|
evolution-data-server-gtk4,
|
|
python3,
|
|
readline,
|
|
gtk-doc,
|
|
docbook-xsl-nons,
|
|
docbook_xml_dtd_43,
|
|
telepathy-glib,
|
|
telepathySupport ? false,
|
|
}:
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "folks";
|
|
version = "0.15.9";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devdoc"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/folks/${lib.versions.majorMinor finalAttrs.version}/folks-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-IxGzc1XDUfM/Fj/cOUh0oioKBoLDGUk9bYpuQgcRQV8=";
|
|
};
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
gettext
|
|
gobject-introspection
|
|
gtk-doc
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_43
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
]
|
|
++ lib.optionals telepathySupport [
|
|
python3
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
dbus-glib
|
|
evolution-data-server-gtk4 # UI part not needed, using gtk4 version to reduce system closure.
|
|
readline
|
|
]
|
|
++ lib.optionals telepathySupport [
|
|
telepathy-glib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
libgee
|
|
sqlite
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
dbus
|
|
(python3.withPackages (
|
|
pp: with pp; [
|
|
python-dbusmock
|
|
# The following possibly need to be propagated by dbusmock
|
|
# if they are not optional
|
|
dbus-python
|
|
pygobject3
|
|
]
|
|
))
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddocs=true"
|
|
"-Dtelepathy_backend=${lib.boolToString telepathySupport}"
|
|
"-Dtests=${lib.boolToString (finalAttrs.finalPackage.doCheck && stdenv.hostPlatform.isLinux)}"
|
|
];
|
|
|
|
# backends/eds/lib/libfolks-eds.so.26.0.0.p/edsf-persona-store.c:10697:4:
|
|
# error: call to undeclared function 'folks_persona_store_set_is_user_set_default';
|
|
# ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
|
|
|
|
# Checks last re-enabled in https://github.com/NixOS/nixpkgs/pull/279843, but timeouts in tests still
|
|
# occur inconsistently
|
|
doCheck = false;
|
|
|
|
mesonCheckFlags = [
|
|
# Prevents e-d-s add-contacts-stress-test from timing out
|
|
"--timeout-multiplier"
|
|
"4"
|
|
];
|
|
|
|
postPatch = lib.optionalString telepathySupport ''
|
|
patchShebangs tests/tools/manager-file.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "folks";
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library that aggregates people from multiple sources to create metacontacts";
|
|
homepage = "https://gitlab.gnome.org/GNOME/folks";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|