2021-07-31 17:10:55 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
|
|
|
, python3Packages
|
|
|
|
, gst_all_1
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, libwnck
|
|
|
|
, keybinder3
|
|
|
|
, intltool
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libappindicator-gtk3
|
|
|
|
, libpulseaudio
|
|
|
|
, libgudev
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "kazam";
|
|
|
|
version = "unstable-2021-06-22";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niknah";
|
|
|
|
repo = "kazam";
|
|
|
|
rev = "13f6ce124e5234348f56358b9134a87121f3438c";
|
|
|
|
sha256 = "1jk6khwgdv3nmagdgp5ivz3156pl0ljhf7b6i4b52w1h5ywsg9ah";
|
2014-02-27 15:37:29 +00:00
|
|
|
};
|
|
|
|
|
2021-07-31 17:10:55 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection python3Packages.distutils_extra intltool wrapGAppsHook ];
|
2018-04-15 11:39:47 +00:00
|
|
|
buildInputs = [
|
2021-07-31 17:10:55 +00:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gtk3
|
|
|
|
libwnck
|
|
|
|
keybinder3
|
|
|
|
libappindicator-gtk3
|
|
|
|
libgudev
|
2018-04-15 11:39:47 +00:00
|
|
|
];
|
|
|
|
|
2021-07-31 17:10:55 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pygobject3 pyxdg pycairo dbus-python xlib ];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2019-10-18 23:02:49 +00:00
|
|
|
# workaround https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
2018-04-15 11:39:47 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix paths
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libcanberra = libcanberra-gtk3;
|
|
|
|
inherit libpulseaudio;
|
|
|
|
})
|
|
|
|
];
|
2014-02-27 15:37:29 +00:00
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-07 05:33:58 +00:00
|
|
|
description = "A screencasting program created with design in mind";
|
2021-07-31 17:10:55 +00:00
|
|
|
homepage = "https://github.com/niknah/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
|
|
|
};
|
|
|
|
}
|