2019-05-07 18:55:24 +02:00
|
|
|
{ fetchurl
|
|
|
|
, stdenv
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, gnome3
|
|
|
|
, nspr
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, sqlite
|
|
|
|
, libxml2
|
|
|
|
, dbus-glib
|
|
|
|
, libsoup
|
|
|
|
, nss
|
|
|
|
, dbus
|
|
|
|
, libgee
|
|
|
|
, telepathy-glib
|
|
|
|
, evolution-data-server
|
|
|
|
, libsecret
|
|
|
|
, db
|
|
|
|
, python3
|
|
|
|
, python
|
|
|
|
, readline
|
|
|
|
, gtk3
|
|
|
|
}:
|
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";
|
2019-09-02 18:44:03 +02:00
|
|
|
version = "0.13.1";
|
2019-05-07 18:55:24 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-25 23:05:45 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 18:44:03 +02:00
|
|
|
sha256 = "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://gitlab.gnome.org/GNOME/folks/issues/108
|
|
|
|
"-Ddocs=false"
|
|
|
|
];
|
2019-03-07 15:53:53 +01:00
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python
|
|
|
|
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
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
readline
|
|
|
|
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
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
# TODO: enable tests
|
|
|
|
# doCheck = true;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
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 = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2018-12-25 23:05:45 +01:00
|
|
|
packageName = pname;
|
2017-12-26 21:07:59 +01:00
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-05-07 18:55:24 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-12-25 23:05:45 +01:00
|
|
|
description = "A library that aggregates people from multiple sources to create metacontacts";
|
2016-09-18 21:35:23 +02:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Folks;
|
2019-05-07 18:55:24 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
2019-05-07 18:55:24 +02:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|