2020-04-24 23:36:52 +00:00
|
|
|
{ fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib, stdenv
|
|
|
|
, pkg-config
|
2021-03-15 08:37:03 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, gnome3
|
|
|
|
, nspr
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, sqlite
|
|
|
|
, libxml2
|
|
|
|
, dbus-glib
|
|
|
|
, libsoup
|
|
|
|
, nss
|
|
|
|
, dbus
|
|
|
|
, libgee
|
|
|
|
, evolution-data-server
|
|
|
|
, libsecret
|
|
|
|
, db
|
|
|
|
, python3
|
|
|
|
, readline
|
|
|
|
, gtk3
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2020-11-12 09:05:59 +00:00
|
|
|
, telepathy-glib
|
|
|
|
, telepathySupport ? false
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "folks";
|
|
|
|
version = "0.14.0";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1f9b52vmwnq7s51vj26w2618dn2ph5g12ibbkbyk6fvxcgd7iryn";
|
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
patches = [
|
|
|
|
# Fix tests with e-d-s linked with libphonenumber support
|
|
|
|
# https://gitlab.gnome.org/GNOME/folks/merge_requests/40
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/folks/commit/6d443480a137f6a6ff345b21bf3cb31066eefbcd.patch";
|
|
|
|
sha256 = "D/Y2g12TT0qrcH+iJ2umu4Hmp0EJ3Hoedh0H3aWI+HY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=true"
|
2021-02-05 17:12:51 +00:00
|
|
|
"-Dtelepathy_backend=${lib.boolToString telepathySupport}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
db
|
|
|
|
dbus-glib
|
|
|
|
evolution-data-server
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
readline
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional telepathySupport telepathy-glib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
# Prevents e-d-s add-contacts-stress-test from timing out
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
meson test --timeout-multiplier 4
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs tests/tools/manager-file.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library that aggregates people from multiple sources to create metacontacts";
|
|
|
|
homepage = "https://wiki.gnome.org/Projects/Folks";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
2020-11-12 09:05:59 +00:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|