2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, substituteAll, python3, gst_all_1, wrapGAppsHook, gobject-introspection
|
2018-04-15 11:39:47 +00:00
|
|
|
, gtk3, libwnck3, keybinder3, intltool, libcanberra-gtk3, libappindicator-gtk3, libpulseaudio }:
|
2014-02-27 15:37:29 +00:00
|
|
|
|
2018-04-15 11:39:47 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2014-02-27 15:37:29 +00:00
|
|
|
name = "kazam-${version}";
|
2018-04-15 11:39:47 +00:00
|
|
|
version = "1.4.5";
|
2014-03-18 17:21:03 +00:00
|
|
|
namePrefix = "";
|
2014-02-27 15:37:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/kazam/stable/${version}/+download/kazam-${version}.tar.gz";
|
2018-04-15 11:39:47 +00:00
|
|
|
sha256 = "1qygnrvm6aqixbyivhssp70hs0llxwk7lh3j7idxa2jbkk06hj4f";
|
2014-02-27 15:37:29 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection python3.pkgs.distutils_extra intltool wrapGAppsHook ];
|
2018-04-15 11:39:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gtk3 libwnck3
|
|
|
|
keybinder3 libappindicator-gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pygobject3 pyxdg pycairo dbus-python ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix paths
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libcanberra = libcanberra-gtk3;
|
|
|
|
inherit libpulseaudio;
|
|
|
|
})
|
|
|
|
# Fix compability with Python 3.4
|
|
|
|
(fetchurl {
|
|
|
|
url = https://sources.debian.org/data/main/k/kazam/1.4.5-2/debian/patches/configparser_api_changes.patch;
|
|
|
|
sha256 = "0yvmipnh98s7y07cp1f113l0qqfw65k13an96byq707z3ymv1c2h";
|
|
|
|
})
|
|
|
|
];
|
2014-02-27 15:37:29 +00:00
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-03-07 05:33:58 +00:00
|
|
|
description = "A screencasting program created with design in mind";
|
2014-02-27 15:37:29 +00:00
|
|
|
homepage = https://code.launchpad.net/kazam;
|
2018-03-07 05:33:58 +00:00
|
|
|
license = licenses.lgpl3;
|
2014-02-27 15:37:29 +00:00
|
|
|
platforms = platforms.linux;
|
2016-05-17 11:57:28 +00:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2014-02-27 15:37:29 +00:00
|
|
|
};
|
|
|
|
}
|