2021-10-01 22:50:46 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-05-07 16:55:24 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-05-07 16:55:24 +00:00
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, sqlite
|
|
|
|
, dbus-glib
|
|
|
|
, dbus
|
|
|
|
, libgee
|
2022-09-20 13:37:51 +00:00
|
|
|
, evolution-data-server-gtk4
|
2019-05-07 16:55:24 +00:00
|
|
|
, python3
|
|
|
|
, readline
|
2020-03-03 12:41:12 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2020-10-23 23:36:33 +00:00
|
|
|
, telepathy-glib
|
|
|
|
, telepathySupport ? false
|
2019-05-07 16:55:24 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
|
2024-01-14 14:38:10 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-12-25 22:05:45 +00:00
|
|
|
pname = "folks";
|
2024-03-16 18:28:04 +00:00
|
|
|
version = "0.15.9";
|
2019-05-07 16:55:24 +00:00
|
|
|
|
2020-03-03 12:41:12 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-14 15:22:35 +00:00
|
|
|
url = "mirror://gnome/sources/folks/${lib.versions.majorMinor finalAttrs.version}/folks-${finalAttrs.version}.tar.xz";
|
2024-03-16 18:28:04 +00:00
|
|
|
hash = "sha256-IxGzc1XDUfM/Fj/cOUh0oioKBoLDGUk9bYpuQgcRQV8=";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
|
2019-05-07 16:55:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
2020-03-03 12:41:12 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2019-05-07 16:55:24 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-05-07 16:55:24 +00:00
|
|
|
vala
|
2022-10-17 03:54:27 +00:00
|
|
|
] ++ lib.optionals telepathySupport [
|
|
|
|
python3
|
2018-09-12 12:27:01 +00:00
|
|
|
];
|
2019-03-07 14:53:53 +00:00
|
|
|
|
2019-05-07 16:55:24 +00:00
|
|
|
buildInputs = [
|
|
|
|
dbus-glib
|
2022-10-17 03:54:27 +00:00
|
|
|
evolution-data-server-gtk4 # UI part not needed, using gtk4 version to reduce system closure.
|
2019-05-07 16:55:24 +00:00
|
|
|
readline
|
2022-10-17 03:54:27 +00:00
|
|
|
] ++ lib.optionals telepathySupport [
|
|
|
|
telepathy-glib
|
|
|
|
];
|
2019-03-07 14:53:53 +00:00
|
|
|
|
2019-05-07 16:55:24 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
sqlite
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2019-05-07 16:55:24 +00:00
|
|
|
dbus
|
2020-03-03 12:22:51 +00:00
|
|
|
(python3.withPackages (pp: with pp; [
|
|
|
|
python-dbusmock
|
|
|
|
# The following possibly need to be propagated by dbusmock
|
|
|
|
# if they are not optional
|
|
|
|
dbus-python
|
|
|
|
pygobject3
|
|
|
|
]))
|
2019-05-07 16:55:24 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-03-21 00:32:20 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=true"
|
|
|
|
"-Dtelepathy_backend=${lib.boolToString telepathySupport}"
|
2024-07-30 16:31:23 +00:00
|
|
|
"-Dtests=${lib.boolToString (finalAttrs.finalPackage.doCheck && stdenv.hostPlatform.isLinux)}"
|
2021-03-21 00:32:20 +00:00
|
|
|
];
|
|
|
|
|
2024-01-09 13:42:02 +00:00
|
|
|
# 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";
|
|
|
|
|
2024-01-14 11:10:15 +00:00
|
|
|
# Checks last re-enabled in https://github.com/NixOS/nixpkgs/pull/279843, but timeouts in tests still
|
|
|
|
# occur inconsistently
|
|
|
|
doCheck = false;
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2024-05-14 09:32:49 +00:00
|
|
|
mesonCheckFlags = [
|
|
|
|
# Prevents e-d-s add-contacts-stress-test from timing out
|
|
|
|
"--timeout-multiplier" "4"
|
|
|
|
];
|
2021-03-13 01:45:54 +00:00
|
|
|
|
2022-10-17 03:54:27 +00:00
|
|
|
postPatch = lib.optionalString telepathySupport ''
|
2019-05-07 16:55:24 +00:00
|
|
|
patchShebangs tests/tools/manager-file.py
|
|
|
|
'';
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2017-12-26 20:07:59 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2024-01-14 15:22:35 +00:00
|
|
|
packageName = "folks";
|
2017-12-26 20:07:59 +00:00
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-12-25 22:05:45 +00:00
|
|
|
description = "Library that aggregates people from multiple sources to create metacontacts";
|
2024-04-30 14:44:27 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/folks";
|
2023-03-06 15:36:05 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2022-12-18 21:50:13 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
2024-01-14 14:38:10 +00:00
|
|
|
})
|