2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, substituteAll, python3, gst_all_1, wrapGAppsHook, gobject-introspection
|
2019-10-19 00:02:49 +01:00
|
|
|
, gtk3, libwnck3, keybinder3, intltool, libcanberra-gtk3, libappindicator-gtk3, libpulseaudio
|
|
|
|
, fetchpatch }:
|
2014-02-27 15:37:29 +00:00
|
|
|
|
2018-04-15 12:39:47 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2014-02-27 15:37:29 +00:00
|
|
|
name = "kazam-${version}";
|
2018-04-15 12:39:47 +01: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 12:39:47 +01: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 12:39:47 +01: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 ];
|
2019-10-19 00:02:49 +01:00
|
|
|
|
|
|
|
# workaround https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
2018-04-15 12:39:47 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix paths
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libcanberra = libcanberra-gtk3;
|
|
|
|
inherit libpulseaudio;
|
|
|
|
})
|
2019-10-19 00:02:49 +01:00
|
|
|
# https://github.com/hzbd/kazam/pull/21
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/hzbd/kazam/commit/37e53a5aa61f4223a9ea03ceeda26eeba2b9d37b.patch";
|
2019-10-19 00:02:49 +01:00
|
|
|
sha256 = "1q5dpmdm6cvgzw8xa7bwclnqa05xc73ja1lszwmwv5glyik0fk4z";
|
2018-04-15 12:39:47 +01:00
|
|
|
})
|
|
|
|
];
|
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";
|
2020-04-01 02:11:51 +01: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 12:57:28 +01:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2014-02-27 15:37:29 +00:00
|
|
|
};
|
|
|
|
}
|