2016-09-18 21:35:23 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, glib, gnome3, nspr, intltool
|
2018-07-17 22:11:16 +02:00
|
|
|
, vala, sqlite, libxml2, dbus-glib, libsoup, nss, dbus
|
2018-02-25 03:23:58 +01:00
|
|
|
, telepathy-glib, evolution-data-server, libsecret, db }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
# TODO: enable more folks backends
|
|
|
|
|
|
|
|
let
|
2017-12-26 21:07:59 +01:00
|
|
|
version = "0.11.4";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "folks-${version}";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-12-26 21:07:59 +01:00
|
|
|
url = "mirror://gnome/sources/folks/${gnome3.versionBranch version}/${name}.tar.xz";
|
2017-10-03 03:01:31 +02:00
|
|
|
sha256 = "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ glib gnome3.libgee sqlite ];
|
|
|
|
# dbus_daemon needed for tests
|
2018-07-17 22:11:16 +02:00
|
|
|
buildInputs = [ dbus-glib telepathy-glib evolution-data-server dbus
|
2017-10-10 22:24:04 +02:00
|
|
|
vala libsecret libxml2 libsoup nspr nss intltool db ];
|
2016-09-18 21:35:23 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
configureFlags = "--disable-fatal-warnings";
|
|
|
|
|
2016-10-03 22:21:13 +02:00
|
|
|
NIX_CFLAGS_COMPILE = ["-I${nss.dev}/include/nss"
|
2018-07-17 22:11:16 +02:00
|
|
|
"-I${dbus-glib.dev}/include/dbus-1.0" "-I${dbus.dev}/include/dbus-1.0"];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postBuild = "rm -rf $out/share/gtk-doc";
|
|
|
|
|
2017-12-26 21:07:59 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "folks";
|
|
|
|
attrPath = "gnome3.folks";
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = {
|
|
|
|
description = "Folks";
|
|
|
|
|
|
|
|
homepage = https://wiki.gnome.org/Projects/Folks;
|
|
|
|
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
|
|
|
|
|
|
maintainers = gnome3.maintainers;
|
2018-05-01 00:47:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|