transmission-remote-gtk: fix broken tray applet icons

This uses `wrapGAppsHook` and `hicolor_icon_theme` to let the tray
applet find the icons.
This commit is contained in:
Robert Helgesson 2017-04-18 22:55:49 +02:00
parent b2ce7fd3a9
commit 4c171319f5
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -1,5 +1,6 @@
{ stdenv, autoconf, automake, libtool, makeWrapper, fetchFromGitHub, pkgconfig
, intltool, gtk3, json_glib, curl, glib, autoconf-archive, appstream-glib }:
{ stdenv, autoconf, automake, libtool, wrapGAppsHook, fetchFromGitHub, pkgconfig
, intltool, gtk3, json_glib, curl, glib, autoconf-archive, appstream-glib
, hicolor_icon_theme }:
stdenv.mkDerivation rec {
@ -15,18 +16,12 @@ stdenv.mkDerivation rec {
preConfigure = "./autogen.sh";
nativeBuildInputs= [
autoconf automake libtool makeWrapper
pkgconfig intltool autoconf-archive
nativeBuildInputs= [
autoconf automake libtool wrapGAppsHook
pkgconfig intltool autoconf-archive
appstream-glib
];
buildInputs = [ gtk3 json_glib curl glib ];
preFixup = ''
wrapProgram "$out/bin/transmission-remote-gtk" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
rm $out/share/icons/hicolor/icon-theme.cache
'';
buildInputs = [ gtk3 json_glib curl glib hicolor_icon_theme ];
meta = with stdenv.lib;
{ description = "GTK remote control for the Transmission BitTorrent client";