nixpkgs/pkgs/applications/video/kazam/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2018-04-15 13:39:47 +02:00
{ stdenv, fetchurl, substituteAll, python3, gst_all_1, wrapGAppsHook, gobjectIntrospection
, gtk3, libwnck3, keybinder3, intltool, libcanberra-gtk3, libappindicator-gtk3, libpulseaudio }:
2014-02-27 16:37:29 +01:00
2018-04-15 13:39:47 +02:00
python3.pkgs.buildPythonApplication rec {
2014-02-27 16:37:29 +01:00
name = "kazam-${version}";
2018-04-15 13:39:47 +02:00
version = "1.4.5";
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";
2018-04-15 13:39:47 +02:00
sha256 = "1qygnrvm6aqixbyivhssp70hs0llxwk7lh3j7idxa2jbkk06hj4f";
2014-02-27 16:37:29 +01:00
};
2018-04-15 13:39:47 +02:00
nativeBuildInputs = [ gobjectIntrospection python3.pkgs.distutils_extra intltool wrapGAppsHook ];
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 16:37:29 +01:00
# no tests
doCheck = false;
meta = with stdenv.lib; {
2018-03-07 06:33:58 +01:00
description = "A screencasting program created with design in mind";
2014-02-27 16:37:29 +01:00
homepage = https://code.launchpad.net/kazam;
2018-03-07 06:33:58 +01:00
license = licenses.lgpl3;
2014-02-27 16:37:29 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.domenkozar ];
2014-02-27 16:37:29 +01:00
};
}