2018-02-24 18:23:58 -08:00
|
|
|
{ stdenv, intltool, fetchurl, evolution-data-server, db
|
2016-09-18 12:35:23 -07:00
|
|
|
, pkgconfig, gtk3, glib, libsecret
|
2018-02-24 18:23:58 -08:00
|
|
|
, libchamplain, clutter-gtk, geocode-glib
|
2017-05-26 00:00:58 -07:00
|
|
|
, bash, wrapGAppsHook, itstool, folks, libnotify, libxml2
|
2018-02-24 18:23:58 -08:00
|
|
|
, gnome3, librsvg, gdk_pixbuf, file, telepathy-glib, nspr, nss
|
|
|
|
, libsoup, vala, dbus-glib, automake, autoconf }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2018-02-24 18:23:58 -08:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard evolution-data-server ];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
# force build from vala
|
|
|
|
preBuild = ''
|
|
|
|
touch src/*.vala
|
|
|
|
'';
|
|
|
|
|
2017-10-04 14:50:14 -07:00
|
|
|
nativeBuildInputs = [ vala automake autoconf pkgconfig intltool itstool wrapGAppsHook file ];
|
2018-02-24 18:23:58 -08:00
|
|
|
buildInputs = [ gtk3 glib evolution-data-server gnome3.gsettings-desktop-schemas libnotify
|
|
|
|
folks gnome3.gnome-desktop telepathy-glib libsecret dbus-glib
|
|
|
|
libxml2 libsoup gnome3.gnome-online-accounts nspr nss
|
|
|
|
gdk_pixbuf gnome3.defaultIconTheme libchamplain clutter-gtk geocode-glib db ];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
preFixup = ''
|
2017-05-26 00:00:58 -07:00
|
|
|
gappsWrapperArgs+=(
|
2018-02-24 18:23:58 -08:00
|
|
|
--prefix XDG_DATA_DIRS : "${gnome3.gnome-themes-standard}/share"
|
2017-05-26 00:00:58 -07:00
|
|
|
)
|
2016-09-18 12:35:23 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./gio_unix.patch ];
|
|
|
|
|
|
|
|
patchFlags = "-p0";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Contacts;
|
|
|
|
description = "Contacts is GNOME's integrated address book";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|