gnome-contacts: new package

Contacts is GNOME's integrated address book

https://wiki.gnome.org/Apps/Contacts
This commit is contained in:
Luca Bruno 2014-04-08 13:24:56 +02:00
parent 2bc0f7b701
commit f88597d6e4
4 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- configure.ac.orig 2014-04-08 10:25:49.497620879 +0200
+++ configure.ac 2014-04-08 10:26:36.639440950 +0200
@@ -43,6 +43,7 @@
folks-telepathy
folks-eds
libnotify
+ dbus-glib-1
telepathy-glib >= 0.17.5
libebook-1.2 >= 3.5.3
libedataserver-1.2 >= 3.5.3

View file

@ -0,0 +1,51 @@
{ stdenv, intltool, fetchurl, evolution_data_server, db
, pkgconfig, gtk3, glib, hicolor_icon_theme, libsecret
, bash, makeWrapper, itstool, folks, libnotify, libxml2
, gnome3, librsvg, gdk_pixbuf, file, telepathy_glib, nspr, nss
, libsoup, vala, dbus_glib, automake114x, autoconf }:
stdenv.mkDerivation rec {
name = "gnome-contacts-3.10.1";
src = fetchurl {
url = "mirror://gnome/sources/gnome-contacts/3.10/${name}.tar.xz";
sha256 = "e119c32bb10136e7190f11f79334fa82ed56468cff5bb7836da0ebf7b572779b";
};
doCheck = true;
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard evolution_data_server ];
propagatedBuildInputs = [ gdk_pixbuf gnome3.gnome_icon_theme librsvg
hicolor_icon_theme gnome3.gnome_icon_theme_symbolic ];
# force build from vala
preBuild = ''
touch src/*.vala
'';
buildInputs = [ pkgconfig gtk3 glib intltool itstool evolution_data_server
gnome3.gsettings_desktop_schemas makeWrapper file libnotify
folks gnome3.gnome_desktop telepathy_glib libsecret dbus_glib
libxml2 libsoup gnome3.gnome_online_accounts nspr nss
vala automake114x autoconf db ];
preFixup = ''
for f in "$out/bin/gnome-contacts" "$out/libexec/gnome-contacts-search-provider"; do
wrapProgram $f \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
done
'';
patches = [ ./configure_dbus_glib.patch ./fix_row_selected.patch ];
patchFlags = "-p0";
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Contacts;
description = "Contacts is GNOME's integrated address book";
maintainers = with maintainers; [ lethalman ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,11 @@
--- src/contacts-view.vala.orig 2014-04-08 11:35:36.302252460 +0200
+++ src/contacts-view.vala 2014-04-08 11:37:37.045343221 +0200
@@ -265,7 +265,7 @@
data.destroy ();
}
- public override void row_selected (ListBoxRow row) {
+ public override void row_selected (ListBoxRow? row) {
var data = row as ContactDataRow;
var contact = data != null ? data.contact : null;
selection_changed (contact);

View file

@ -40,6 +40,8 @@ rec {
gnome-backgrounds = callPackage ./core/gnome-backgrounds { };
gnome-contacts = callPackage ./core/gnome-contacts { };
gnome_control_center = callPackage ./core/gnome-control-center { };
gnome-calculator = callPackage ./core/gnome-calculator { };