xpra: add audio streaming support

This commit is contained in:
Jaka Hudoklin 2016-09-03 15:52:39 +02:00
parent 6286d445e3
commit 7956b2d65e

View File

@ -1,8 +1,11 @@
{ stdenv, fetchurl, pythonPackages, pkgconfig { stdenv, lib, fetchurl, pythonPackages, pkgconfig
, xorg, gtk2, glib, pango, cairo, gdk_pixbuf, atk , xorg, gtk2, glib, pango, cairo, gdk_pixbuf, atk
, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config , makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config
, ffmpeg, x264, libvpx, libwebp , ffmpeg, x264, libvpx, libwebp
, libfakeXinerama }: , libfakeXinerama
, gst_all_1, pulseaudioLight, gobjectIntrospection }:
with lib;
let let
inherit (pythonPackages) python cython buildPythonApplication; inherit (pythonPackages) python cython buildPythonApplication;
@ -26,11 +29,19 @@ in buildPythonApplication rec {
ffmpeg libvpx x264 libwebp ffmpeg libvpx x264 libwebp
gobjectIntrospection
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-libav
makeWrapper makeWrapper
]; ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
pillow pygtk pygobject2 rencode pycrypto cryptography pycups lz4 dbus-python pillow pygtk pygobject2 rencode pycrypto cryptography pycups lz4 dbus-python
netifaces numpy websockify pygobject3 gst-python
]; ];
preBuild = '' preBuild = ''
@ -49,8 +60,10 @@ in buildPythonApplication rec {
--set FONTCONFIG_FILE "${fontsConf}" \ --set FONTCONFIG_FILE "${fontsConf}" \
--set XPRA_LOG_DIR "\$HOME/.xpra" \ --set XPRA_LOG_DIR "\$HOME/.xpra" \
--set XPRA_INSTALL_PREFIX "$out" \ --set XPRA_INSTALL_PREFIX "$out" \
--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH" \
--set GST_PLUGIN_SYSTEM_PATH_1_0 "$GST_PLUGIN_SYSTEM_PATH_1_0" \
--prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \ --prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib \
--prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux ]} --prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux pulseaudioLight ]} \
''; '';
preCheck = "exit 0"; preCheck = "exit 0";
@ -65,7 +78,7 @@ in buildPythonApplication rec {
meta = { meta = {
homepage = http://xpra.org/; homepage = http://xpra.org/;
description = "Persistent remote applications for X"; description = "Persistent remote applications for X";
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ tstrobel ]; maintainers = with maintainers; [ tstrobel offline ];
}; };
} }