2019-05-07 18:55:24 +02:00
|
|
|
{ fetchurl
|
2021-01-21 18:00:13 +01:00
|
|
|
, lib, stdenv
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-05-07 18:55:24 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-05-07 18:55:24 +02:00
|
|
|
, nspr
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, sqlite
|
|
|
|
, libxml2
|
|
|
|
, dbus-glib
|
|
|
|
, libsoup
|
|
|
|
, nss
|
|
|
|
, dbus
|
|
|
|
, libgee
|
|
|
|
, evolution-data-server
|
2021-03-21 01:32:20 +01:00
|
|
|
, libgdata
|
2019-05-07 18:55:24 +02:00
|
|
|
, libsecret
|
|
|
|
, db
|
|
|
|
, python3
|
|
|
|
, readline
|
|
|
|
, gtk3
|
2020-03-03 13:41:12 +01:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2020-10-24 01:36:33 +02:00
|
|
|
, telepathy-glib
|
|
|
|
, telepathySupport ? false
|
2019-05-07 18:55:24 +02:00
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
|
2018-12-25 23:05:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "folks";
|
2021-03-21 01:32:20 +01:00
|
|
|
version = "0.15.2";
|
2019-05-07 18:55:24 +02:00
|
|
|
|
2020-03-03 13:41:12 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 18:00:13 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-21 01:32:20 +01:00
|
|
|
sha256 = "08nirjax4m4g4ljr8ksq16wzmrvzq6myqh5rm0dw6pnijqk7nxzg";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
2020-03-03 13:41:12 +01:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2019-05-07 18:55:24 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-05-07 18:55:24 +02:00
|
|
|
python3
|
|
|
|
vala
|
2018-09-12 14:27:01 +02:00
|
|
|
];
|
2019-03-07 15:53:53 +01:00
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
buildInputs = [
|
|
|
|
db
|
|
|
|
dbus-glib
|
|
|
|
evolution-data-server
|
2021-03-21 01:32:20 +01:00
|
|
|
libgdata # required for some backends transitively
|
2019-05-07 18:55:24 +02:00
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
readline
|
2021-01-21 18:00:13 +01:00
|
|
|
] ++ lib.optional telepathySupport telepathy-glib;
|
2019-03-07 15:53:53 +01:00
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
sqlite
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
checkInputs = [
|
|
|
|
dbus
|
2020-03-03 13:22:51 +01: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 18:55:24 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-03-21 01:32:20 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=true"
|
|
|
|
"-Dtelepathy_backend=${lib.boolToString telepathySupport}"
|
|
|
|
# For some reason, the tests are getting stuck on 31/32,
|
|
|
|
# even though the one missing test finishes just fine on next run,
|
|
|
|
# when tests are permuted differently. And another test that
|
|
|
|
# previously passed will be stuck instead.
|
|
|
|
"-Dtests=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-03-13 02:45:54 +01:00
|
|
|
# Prevents e-d-s add-contacts-stress-test from timing out
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
meson test --timeout-multiplier 4
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs tests/tools/manager-file.py
|
|
|
|
'';
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-26 21:07:59 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-12-25 23:05:45 +01:00
|
|
|
packageName = pname;
|
2017-12-26 21:07:59 +01:00
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-12-25 23:05:45 +01:00
|
|
|
description = "A library that aggregates people from multiple sources to create metacontacts";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Folks";
|
2019-05-07 18:55:24 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2020-10-24 01:36:33 +02:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|