1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-04-16 19:48:38 +00:00
nixpkgs/pkgs/development/libraries/folks/default.nix
Jan Tojnar 54d984f62a
folks: Fix build
This was missed in https://github.com/NixOS/nixpkgs/pull/80594.

Also re-enable tests.
2020-03-03 13:27:56 +01:00

109 lines
1.9 KiB
Nix

{ 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
stdenv.mkDerivation rec {
pname = "folks";
version = "0.13.2";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0wq14yjs7m3axziy679a854vc7r7fj1l38p9jnyapb21vswdcqq2";
};
mesonFlags = [
# TODO: https://gitlab.gnome.org/GNOME/folks/issues/108
"-Ddocs=false"
];
nativeBuildInputs = [
gettext
gobject-introspection
gtk3
meson
ninja
pkgconfig
python3
vala
];
buildInputs = [
db
dbus-glib
evolution-data-server
libsecret
libsoup
libxml2
nspr
nss
readline
telepathy-glib
];
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
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
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
};
}