add kazam
This commit is contained in:
parent
9019998576
commit
65a34b7f85
14
pkgs/applications/video/kazam/bug_1190693.patch
Normal file
14
pkgs/applications/video/kazam/bug_1190693.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
=== modified file 'kazam/frontend/indicator.py'
|
||||||
|
--- a/kazam/frontend/indicator.py 2013-01-26 01:53:53 +0000
|
||||||
|
+++ b/kazam/frontend/indicator.py 2013-06-13 18:18:37 +0000
|
||||||
|
@@ -291,3 +291,9 @@
|
||||||
|
def start_recording(self):
|
||||||
|
logger.debug("Recording started.")
|
||||||
|
self.indicator.set_from_icon_name("kazam-recording")
|
||||||
|
+
|
||||||
|
+ def hide_it(self):
|
||||||
|
+ self.indicator.set_visible(False)
|
||||||
|
+
|
||||||
|
+ def show_it(self):
|
||||||
|
+ self.indicator.set_visible(True)
|
||||||
|
|
11
pkgs/applications/video/kazam/datadir.patch
Normal file
11
pkgs/applications/video/kazam/datadir.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/bin/kazam 2014-02-03 23:11:38.465614061 +0100
|
||||||
|
+++ b/bin/kazam-1 2014-02-03 23:12:28.447058700 +0100
|
||||||
|
@@ -68,7 +68,7 @@
|
||||||
|
# when base install path is not /usr
|
||||||
|
curpath = os.path.abspath(__file__)
|
||||||
|
curpath = os.path.realpath(curpath)
|
||||||
|
- datadir = curpath.split('bin/')[0] + "share/kazam/"
|
||||||
|
+ datadir = os.path.realpath(os.path.join(curpath, "./../../", "share/kazam/"))
|
||||||
|
|
||||||
|
try:
|
||||||
|
import platform
|
50
pkgs/applications/video/kazam/default.nix
Normal file
50
pkgs/applications/video/kazam/default.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ stdenv, fetchurl, python3Packages, gst_all_1, makeWrapper, gobjectIntrospection
|
||||||
|
, gtk3, libwnck3, keybinder, intltool, libcanberra }:
|
||||||
|
|
||||||
|
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
|
name = "kazam-${version}";
|
||||||
|
version = "1.4.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://launchpad.net/kazam/stable/${version}/+download/kazam-${version}.tar.gz";
|
||||||
|
sha256 = "00bcn0yj9xrv87sf6xd3wpilsjgjpsj15zzpjh351ffpjnr0ica8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: keybinder, appindicator3
|
||||||
|
buildInputs = with python3Packages;
|
||||||
|
[ pygobject3 pyxdg pycairo gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gst-plugins-good gobjectIntrospection gtk3 libwnck3 distutils_extra
|
||||||
|
intltool dbus ];
|
||||||
|
|
||||||
|
# TODO: figure out why PYTHONPATH is not passed automatically for those programs
|
||||||
|
pythonPath = with python3Packages;
|
||||||
|
[ pygobject3 pyxdg pycairo dbus ];
|
||||||
|
|
||||||
|
patches = [ ./datadir.patch ./bug_1190693.patch ];
|
||||||
|
prePatch = ''
|
||||||
|
rm setup.cfg
|
||||||
|
substituteInPlace kazam/backend/grabber.py --replace "/usr/bin/canberra-gtk-play" "${libcanberra}/bin/canberra-gtk-play"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
wrapProgram $out/bin/kazam \
|
||||||
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||||
|
--prefix LD_LIBRARY_PATH ":" "${gtk3}/lib:${gst_all_1.gstreamer}/lib:${keybinder}/lib" \
|
||||||
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
|
||||||
|
--prefix XDG_DATA_DIRS : "${gtk3}/share" \
|
||||||
|
--set GST_REGISTRY "/tmp/kazam.gstreamer.registry";
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Cross-platform, Friend-2-Friend and secure decentralised communication platform";
|
||||||
|
homepage = https://code.launchpad.net/kazam;
|
||||||
|
#license = licenses.bsd2;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = [ maintainers.iElectric ];
|
||||||
|
};
|
||||||
|
}
|
@ -1225,6 +1225,8 @@ let
|
|||||||
jscoverage = callPackage ../development/tools/misc/jscoverage { };
|
jscoverage = callPackage ../development/tools/misc/jscoverage { };
|
||||||
|
|
||||||
jwhois = callPackage ../tools/networking/jwhois { };
|
jwhois = callPackage ../tools/networking/jwhois { };
|
||||||
|
|
||||||
|
kazam = callPackage ../applications/video/kazam { };
|
||||||
|
|
||||||
kexectools = callPackage ../os-specific/linux/kexectools { };
|
kexectools = callPackage ../os-specific/linux/kexectools { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user