artha: fix libgio-2.0 underlinking

+19 -2
+6 -2
pkgs/applications/misc/artha/default.nix
··· 1 - { stdenv, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }: 2 3 stdenv.mkDerivation rec { 4 name = "artha-${version}"; ··· 9 sha256 = "0qr4ihl7ma3cq82xi1fpzvf74mm9vsg0j035xvmcp3r6rmw2fycx"; 10 }; 11 12 - nativeBuildInputs = [ pkgconfig ]; 13 buildInputs = [ dbus-glib gtk2 wordnet ]; 14 15 meta = with stdenv.lib; { 16 description = "An offline thesaurus based on WordNet";
··· 1 + { stdenv, autoreconfHook, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }: 2 3 stdenv.mkDerivation rec { 4 name = "artha-${version}"; ··· 9 sha256 = "0qr4ihl7ma3cq82xi1fpzvf74mm9vsg0j035xvmcp3r6rmw2fycx"; 10 }; 11 12 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 13 buildInputs = [ dbus-glib gtk2 wordnet ]; 14 + 15 + patches = [ 16 + ./gio-underlink.patch 17 + ]; 18 19 meta = with stdenv.lib; { 20 description = "An offline thesaurus based on WordNet";
+13
pkgs/applications/misc/artha/gio-underlink.patch
···
··· 1 + diff --git a/src/Makefile.am b/src/Makefile.am 2 + index 0236d72..bcc1182 100644 3 + --- a/src/Makefile.am 4 + +++ b/src/Makefile.am 5 + @@ -38,7 +38,7 @@ artha_LDADD = libwni.a $(WORDNET_LIB) 6 + 7 + if POSIX 8 + AM_CFLAGS += @libdbus_CFLAGS@ 9 + -artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgtk-x11-2.0 \ 10 + +artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgio-2.0 -lgtk-x11-2.0 \ 11 + -lgdk-x11-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 12 + else 13 + artha_LDADD += @GTK_LIBS@