3
0
Fork 0
forked from mirrors/nixpkgs

hexchat: fix enchant dependency usage at runtime.

xchat: correctly use gtkspell for spell checking.
This commit is contained in:
Matthew O'Gorman 2016-01-02 02:08:18 -05:00
parent a413b8fde1
commit 067467edf3
No known key found for this signature in database
GPG key ID: F71F32386DEAE4B2
2 changed files with 8 additions and 3 deletions

View file

@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
desktop_file_utils hicolor_icon_theme
];
#hexchat and heachat-text loads enchant spell checking library at run time and so it needs to have route to the path
patchPhase = ''
sed -i "s,libenchant.so.1,${enchant}/lib/libenchant.so.1,g" src/fe-gtk/sexy-spell-entry.c
'';
configureFlags = [ "--enable-shm" "--enable-textfe" ];
meta = with stdenv.lib; {

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, tcl, gtk}:
{stdenv, fetchurl, pkgconfig, tcl, gtk, gtkspell }:
stdenv.mkDerivation {
name = "xchat-2.8.8";
@ -6,8 +6,8 @@ stdenv.mkDerivation {
url = http://www.xchat.org/files/source/2.8/xchat-2.8.8.tar.bz2;
sha256 = "0d6d69437b5e1e45f3e66270fe369344943de8a1190e498fafa5296315a27db0";
};
buildInputs = [pkgconfig tcl gtk];
configureFlags = "--disable-nls";
buildInputs = [pkgconfig tcl gtk gtkspell];
configureFlags = "--disable-nls --enable-spell=gtkspell";
patches = [ ./glib-top-level-header.patch ];