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

116 lines
2.1 KiB
Nix
Raw Normal View History

{ fetchurl
, stdenv
, pkgconfig
, meson
, ninja
, glib
, gnome3
, nspr
, gettext
, gobject-introspection
, vala
, sqlite
, libxml2
, dbus-glib
, libsoup
, nss
, dbus
, libgee
, evolution-data-server
, libsecret
, db
, python3
, readline
, gtk3
2020-03-03 04:41:12 -08:00
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, telepathy-glib
, telepathySupport ? false
}:
# TODO: enable more folks backends
2018-12-25 14:05:45 -08:00
stdenv.mkDerivation rec {
pname = "folks";
2020-03-11 09:17:59 -07:00
version = "0.14.0";
2020-03-03 04:41:12 -08:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
2018-12-25 14:05:45 -08:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-03-11 09:17:59 -07:00
sha256 = "1f9b52vmwnq7s51vj26w2618dn2ph5g12ibbkbyk6fvxcgd7iryn";
};
mesonFlags = [
2020-03-03 04:41:12 -08:00
"-Ddocs=true"
"-Dtelepathy_backend=${stdenv.lib.boolToString telepathySupport}"
];
2019-03-07 06:53:53 -08:00
nativeBuildInputs = [
gettext
gobject-introspection
gtk3
2020-03-03 04:41:12 -08:00
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
meson
ninja
pkgconfig
python3
vala
2018-09-12 05:27:01 -07:00
];
2019-03-07 06:53:53 -08:00
buildInputs = [
db
dbus-glib
evolution-data-server
libsecret
libsoup
libxml2
nspr
nss
readline
] ++ stdenv.lib.optional telepathySupport telepathy-glib;
2019-03-07 06:53:53 -08:00
propagatedBuildInputs = [
glib
libgee
sqlite
];
checkInputs = [
dbus
(python3.withPackages (pp: with pp; [
python-dbusmock
# The following possibly need to be propagated by dbusmock
# if they are not optional
dbus-python
pygobject3
]))
];
doCheck = true;
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
patchShebangs tests/tools/manager-file.py
'';
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 = with stdenv.lib; {
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 = licenses.lgpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
};
}