From c979360b528d927fc19539ed720ebb6b56a15ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 30 Jun 2013 14:32:36 +0200 Subject: [PATCH] Adding a wrapper for sflphone-gnome (to find gtk3 schema files) --- .../networking/instant-messengers/sflphone/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/sflphone/default.nix b/pkgs/applications/networking/instant-messengers/sflphone/default.nix index 79b554798eee..2401d796bfdc 100644 --- a/pkgs/applications/networking/instant-messengers/sflphone/default.nix +++ b/pkgs/applications/networking/instant-messengers/sflphone/default.nix @@ -2,7 +2,7 @@ , commoncpp2, ccrtp, libzrtpcpp, dbus, dbus_cplusplus, expat, pcre, gsm, speex, ilbc, libopus , autoconf, automake, libtool, gettext, perl , cmake, qt4 -, gtk, glib, dbus_glib, libnotify, intltool }: +, gtk, glib, dbus_glib, libnotify, intltool, makeWrapper }: let name = "sflphone-1.2.3"; @@ -74,6 +74,11 @@ rec { cd gnome ''; - buildInputs = [ daemon pkgconfig gtk glib dbus_glib libnotify intltool ]; + # gtk3 programs have the runtime dependency on XDG_DATA_DIRS + postInstall = '' + wrapProgram $out/bin/sflphone* --prefix XDG_DATA_DIRS ":" ${gtk}/share + ''; + + buildInputs = [ daemon pkgconfig gtk glib dbus_glib libnotify intltool makeWrapper ]; }; }