nixpkgs/pkgs/development/libraries/folks/default.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, pkgconfig, glib, gnome3, nspr, intltool, gobject-introspection
2018-12-25 14:05:45 -08:00
, vala, sqlite, libxml2, dbus-glib, libsoup, nss, dbus, libgee
, telepathy-glib, evolution-data-server, libsecret, db }:
# TODO: enable more folks backends
2018-12-25 14:05:45 -08:00
stdenv.mkDerivation rec {
pname = "folks";
2017-12-26 12:07:59 -08:00
version = "0.11.4";
src = fetchurl {
2018-12-25 14:05:45 -08:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2017-10-02 18:01:31 -07:00
sha256 = "16hqh2gxlbx0b0hgq216hndr1m72vj54jvryzii9zqkk0g9kxc57";
};
2018-12-25 14:05:45 -08:00
propagatedBuildInputs = [ glib libgee sqlite ];
# dbus_daemon needed for tests
2018-09-12 05:27:01 -07:00
buildInputs = [
dbus-glib telepathy-glib evolution-data-server dbus
libsecret libxml2 libsoup nspr nss db
];
nativeBuildInputs = [ pkgconfig intltool vala gobject-introspection ];
2018-07-25 14:44:21 -07:00
configureFlags = [ "--disable-fatal-warnings" ];
2016-10-03 13:21:13 -07:00
NIX_CFLAGS_COMPILE = ["-I${nss.dev}/include/nss"
"-I${dbus-glib.dev}/include/dbus-1.0" "-I${dbus.dev}/include/dbus-1.0"];
enableParallelBuilding = true;
postBuild = "rm -rf $out/share/gtk-doc";
2017-12-26 12:07:59 -08:00
passthru = {
updateScript = gnome3.updateScript {
2018-12-25 14:05:45 -08:00
packageName = pname;
2017-12-26 12:07:59 -08:00
versionPolicy = "none";
};
};
meta = {
2018-12-25 14:05:45 -08:00
description = "A library that aggregates people from multiple sources to create metacontacts";
homepage = https://wiki.gnome.org/Projects/Folks;
license = stdenv.lib.licenses.lgpl2Plus;
maintainers = gnome3.maintainers;
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
};
}