2014-02-27 16:37:29 +01:00
|
|
|
{ stdenv, fetchurl, python3Packages, gst_all_1, makeWrapper, gobjectIntrospection
|
2018-02-25 03:23:58 +01:00
|
|
|
, gtk3, libwnck3, keybinder, intltool, libcanberra-gtk2 }:
|
2014-02-27 16:37:29 +01:00
|
|
|
|
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2014-02-27 16:37:29 +01:00
|
|
|
name = "kazam-${version}";
|
|
|
|
version = "1.4.3";
|
2014-03-18 18:21:03 +01:00
|
|
|
namePrefix = "";
|
2014-02-27 16:37:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/kazam/stable/${version}/+download/kazam-${version}.tar.gz";
|
|
|
|
sha256 = "00bcn0yj9xrv87sf6xd3wpilsjgjpsj15zzpjh351ffpjnr0ica8";
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: keybinder, appindicator3
|
|
|
|
buildInputs = with python3Packages;
|
|
|
|
[ pygobject3 pyxdg pycairo gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good gobjectIntrospection gtk3 libwnck3 distutils_extra
|
2016-08-16 22:51:21 +02:00
|
|
|
intltool dbus-python ];
|
2014-02-27 16:37:29 +01:00
|
|
|
|
|
|
|
# TODO: figure out why PYTHONPATH is not passed automatically for those programs
|
|
|
|
pythonPath = with python3Packages;
|
2016-08-16 22:51:21 +02:00
|
|
|
[ pygobject3 pyxdg pycairo dbus-python ];
|
2014-02-27 16:37:29 +01:00
|
|
|
|
|
|
|
patches = [ ./datadir.patch ./bug_1190693.patch ];
|
|
|
|
prePatch = ''
|
|
|
|
rm setup.cfg
|
2018-02-25 03:23:58 +01:00
|
|
|
substituteInPlace kazam/backend/grabber.py --replace "/usr/bin/canberra-gtk-play" "${libcanberra-gtk2}/bin/canberra-gtk-play"
|
2014-02-27 16:37:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram $out/bin/kazam \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2016-06-07 20:16:15 +02:00
|
|
|
--prefix LD_LIBRARY_PATH ":" "${stdenv.lib.makeLibraryPath [ gtk3 gst_all_1.gstreamer keybinder ]}" \
|
2014-02-27 16:37:29 +01:00
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
|
2015-10-05 22:56:47 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3.out}/share" \
|
2014-02-27 16:37:29 +01:00
|
|
|
--set GST_REGISTRY "/tmp/kazam.gstreamer.registry";
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross-platform, Friend-2-Friend and secure decentralised communication platform";
|
|
|
|
homepage = https://code.launchpad.net/kazam;
|
|
|
|
#license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2016-05-17 13:57:28 +02:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2014-02-27 16:37:29 +01:00
|
|
|
};
|
|
|
|
}
|