2019-05-07 09:55:24 -07:00
|
|
|
{ fetchurl
|
2021-01-21 09:00:13 -08:00
|
|
|
, lib, stdenv
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2019-05-07 09:55:24 -07:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
2021-05-07 14:18:14 -07:00
|
|
|
, gnome
|
2019-05-07 09:55:24 -07:00
|
|
|
, nspr
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, sqlite
|
|
|
|
, libxml2
|
|
|
|
, dbus-glib
|
|
|
|
, libsoup
|
|
|
|
, nss
|
|
|
|
, dbus
|
|
|
|
, libgee
|
|
|
|
, evolution-data-server
|
2021-03-20 17:32:20 -07:00
|
|
|
, libgdata
|
2019-05-07 09:55:24 -07:00
|
|
|
, libsecret
|
|
|
|
, db
|
|
|
|
, python3
|
|
|
|
, readline
|
|
|
|
, gtk3
|
2020-03-03 04:41:12 -08:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2020-10-23 16:36:33 -07:00
|
|
|
, telepathy-glib
|
|
|
|
, telepathySupport ? false
|
2019-05-07 09:55:24 -07:00
|
|
|
}:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
|
2018-12-25 14:05:45 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "folks";
|
2021-03-20 17:32:20 -07:00
|
|
|
version = "0.15.2";
|
2019-05-07 09:55:24 -07:00
|
|
|
|
2020-03-03 04:41:12 -08:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 09:00:13 -08:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-20 17:32:20 -07:00
|
|
|
sha256 = "08nirjax4m4g4ljr8ksq16wzmrvzq6myqh5rm0dw6pnijqk7nxzg";
|
2016-09-18 12:35:23 -07:00
|
|
|
};
|
|
|
|
|
2019-05-07 09:55:24 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
2020-03-03 04:41:12 -08:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2019-05-07 09:55:24 -07:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-18 22:50:56 -08:00
|
|
|
pkg-config
|
2019-05-07 09:55:24 -07:00
|
|
|
python3
|
|
|
|
vala
|
2018-09-12 05:27:01 -07:00
|
|
|
];
|
2019-03-07 06:53:53 -08:00
|
|
|
|
2019-05-07 09:55:24 -07:00
|
|
|
buildInputs = [
|
|
|
|
db
|
|
|
|
dbus-glib
|
|
|
|
evolution-data-server
|
2021-03-20 17:32:20 -07:00
|
|
|
libgdata # required for some backends transitively
|
2019-05-07 09:55:24 -07:00
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
readline
|
2021-01-21 09:00:13 -08:00
|
|
|
] ++ lib.optional telepathySupport telepathy-glib;
|
2019-03-07 06:53:53 -08:00
|
|
|
|
2019-05-07 09:55:24 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
sqlite
|
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2019-05-07 09:55:24 -07:00
|
|
|
checkInputs = [
|
|
|
|
dbus
|
2020-03-03 04:22:51 -08: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 09:55:24 -07:00
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2021-03-20 17:32:20 -07: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 12:35:23 -07:00
|
|
|
|
2021-03-12 17:45:54 -08: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 09:55:24 -07:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs tests/tools/manager-file.py
|
|
|
|
'';
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2017-12-26 12:07:59 -08:00
|
|
|
passthru = {
|
2021-05-07 14:18:14 -07:00
|
|
|
updateScript = gnome.updateScript {
|
2018-12-25 14:05:45 -08:00
|
|
|
packageName = pname;
|
2017-12-26 12:07:59 -08:00
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2018-12-25 14:05:45 -08:00
|
|
|
description = "A library that aggregates people from multiple sources to create metacontacts";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Folks";
|
2019-05-07 09:55:24 -07:00
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-01 05:40:51 -07:00
|
|
|
maintainers = teams.gnome.members;
|
2020-10-23 16:36:33 -07:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
|
2016-09-18 12:35:23 -07:00
|
|
|
};
|
|
|
|
}
|