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

104 lines
1.7 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
, telepathy-glib
, evolution-data-server
, libsecret
, db
, python3
, readline
, gtk3
}:
# TODO: enable more folks backends
2018-12-25 22:05:45 +00:00
stdenv.mkDerivation rec {
pname = "folks";
2019-09-02 17:44:03 +01:00
version = "0.13.1";
outputs = [ "out" "dev" ];
src = fetchurl {
2018-12-25 22:05:45 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-02 17:44:03 +01:00
sha256 = "0pda8sx4ap3lyri5fdrnakl29la1zkhwlc9bmnp13qigp1iwdw9x";
};
mesonFlags = [
# TODO: https://gitlab.gnome.org/GNOME/folks/issues/108
"-Ddocs=false"
];
2019-03-07 14:53:53 +00:00
nativeBuildInputs = [
gettext
gobject-introspection
gtk3
meson
ninja
pkgconfig
python3
vala
2018-09-12 13:27:01 +01:00
];
2019-03-07 14:53:53 +00:00
buildInputs = [
db
dbus-glib
evolution-data-server
libsecret
libsoup
libxml2
nspr
nss
readline
telepathy-glib
];
2019-03-07 14:53:53 +00:00
propagatedBuildInputs = [
glib
libgee
sqlite
];
checkInputs = [
dbus
];
# TODO: enable tests
# doCheck = true;
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
patchShebangs tests/tools/manager-file.py
'';
2017-12-26 20:07:59 +00:00
passthru = {
updateScript = gnome3.updateScript {
2018-12-25 22:05:45 +00:00
packageName = pname;
2017-12-26 20:07:59 +00:00
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
2018-12-25 22:05:45 +00:00
description = "A library that aggregates people from multiple sources to create metacontacts";
homepage = https://wiki.gnome.org/Projects/Folks;
license = licenses.lgpl2Plus;
maintainers = gnome3.maintainers;
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
};
}