gnucash: set RPATH so that GnuCash binaries can find its GNOME libraries at run-time

svn path=/nixpkgs/trunk/; revision=27689
This commit is contained in:
Peter Simons 2011-07-10 13:34:56 +00:00
parent 5fd662e2e9
commit 4cf494c8ff
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk { fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk
, libglade, libgnomeui, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant , libbonoboui, libgnomeui, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant
, gettext, intltool, perl, guile, slibGuile, swig, isocodes, bzip2 , gettext, intltool, perl, guile, slibGuile, swig, isocodes, bzip2
, makeWrapper }: , makeWrapper }:
@ -16,7 +16,7 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
pkgconfig libxml2 gconf glib gtk pkgconfig libxml2 gconf glib gtk
libglade libgnomeui libgtkhtml gtkhtml libgnomeprint goffice enchant libgnomeui libgtkhtml gtkhtml libgnomeprint goffice enchant
gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper
]; ];
@ -39,6 +39,8 @@ stdenv.mkDerivation {
--enable-python-bindings enable python bindings --enable-python-bindings enable python bindings
*/ */
NIX_LDFLAGS = "-rpath=${libgnomeui}/lib/libglade/2.0 -rpath=${libbonoboui}/lib/libglade/2.0 -rpath=${guile}/lib";
postInstall = '' postInstall = ''
for prog in "$out/bin/"* for prog in "$out/bin/"*
do do

View File

@ -6317,8 +6317,8 @@ let
}; };
gnucash = callPackage ../applications/office/gnucash { gnucash = callPackage ../applications/office/gnucash {
inherit (gnome) gtk glib libglade libgnomeui libgtkhtml gtkhtml inherit (gnome) gtk glib libgnomeui libgtkhtml gtkhtml
libgnomeprint; libbonoboui libgnomeprint;
gconf = gnome.GConf; gconf = gnome.GConf;
guile = guile_1_8; guile = guile_1_8;
slibGuile = slibGuile.override { scheme = guile_1_8; }; slibGuile = slibGuile.override { scheme = guile_1_8; };