3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/gajim/default.nix
aszlig a0c525bd0a
gajim: Add gnome3.defaultIconTheme to buildInputs
This is for systems that are not using a full desktop environment, so
Gajim can fall back to the default icon theme of Gnome 3.

Among just fixing aesthetics this also fixes a few exceptions that were
triggered by Gajim not finding the icons. One example of this is when
you enter the plugins dialog, the window is empty if the icons can't be
found.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @abbradar, @Mic92, @7c6f434c
2018-03-25 23:41:21 +02:00

68 lines
2.1 KiB
Nix

{ buildPythonApplication, lib, fetchurl, gettext, wrapGAppsHook
, python, gtk3, gobjectIntrospection
, nbxmpp, pyasn1, pygobject3, gnome3, dbus-python, pillow
, xvfb_run, dbus
, enableJingle ? true, farstream, gstreamer, gst-plugins-base, gst-libav, gst-plugins-ugly
, enableE2E ? true, pycrypto, python-gnupg
, enableSecrets ? true, libsecret
, enableRST ? true, docutils
, enableSpelling ? true, gspell
, enableUPnP ? true, gupnp-igd
, enableOmemoPluginDependencies ? true, python-axolotl, qrcode
, extraPythonPackages ? pkgs: [], pythonPackages
}:
with lib;
buildPythonApplication rec {
name = "gajim-${version}";
majorVersion = "1.0";
version = "${majorVersion}.0";
src = fetchurl {
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
sha256 = "10da4imfldj04917h54vrmg70a1d832jd8p6386paa5jqzf5qk20";
};
postPatch = ''
# This test requires network access
echo "" > test/integration/test_resolver.py
'';
buildInputs = [
gobjectIntrospection gtk3 gnome3.defaultIconTheme
] ++ optionals enableJingle [ farstream gstreamer gst-plugins-base gst-libav gst-plugins-ugly ]
++ optional enableSecrets libsecret
++ optional enableSpelling gspell
++ optional enableUPnP gupnp-igd;
nativeBuildInputs = [
gettext wrapGAppsHook
];
propagatedBuildInputs = [
nbxmpp pyasn1 pygobject3 dbus-python pillow
] ++ optionals enableE2E [ pycrypto python-gnupg ]
++ optional enableRST docutils
++ optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
++ extraPythonPackages pythonPackages;
checkInputs = [ xvfb_run dbus.daemon ];
checkPhase = ''
xvfb-run dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
${python.interpreter} test/runtests.py
'';
meta = {
homepage = http://gajim.org/;
description = "Jabber client written in PyGTK";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin aszlig abbradar ];
downloadPage = "http://gajim.org/downloads.php";
updateWalker = true;
platforms = platforms.linux;
};
}