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

51 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, substituteAll, python3, gst_all_1, wrapGAppsHook, gobject-introspection
, gtk3, libwnck3, keybinder3, intltool, libcanberra-gtk3, libappindicator-gtk3, libpulseaudio
, fetchpatch }:
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
};
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 ];
# 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;
})
# https://github.com/hzbd/kazam/pull/21
(fetchpatch {
url = "https://github.com/hzbd/kazam/commit/37e53a5aa61f4223a9ea03ceeda26eeba2b9d37b.patch";
sha256 = "1q5dpmdm6cvgzw8xa7bwclnqa05xc73ja1lszwmwv5glyik0fk4z";
2018-04-15 11:39:47 +00: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";
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;
maintainers = [ maintainers.domenkozar ];
2014-02-27 15:37:29 +00:00
};
}