miro: Add support for video/audio library sharing.
This is done using the Avahi/Bonjour compatibility library. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
fc11a7e03e
commit
c1f55dcd35
@ -3,8 +3,13 @@
|
|||||||
, taglib, pysqlite, pycurl, mutagen, pycairo, pythonDBus, pywebkitgtk
|
, taglib, pysqlite, pycurl, mutagen, pycairo, pythonDBus, pywebkitgtk
|
||||||
, libtorrentRasterbar, glib_networking, gsettings_desktop_schemas
|
, libtorrentRasterbar, glib_networking, gsettings_desktop_schemas
|
||||||
, gst_python, gst_plugins_base, gst_plugins_good, gst_ffmpeg
|
, gst_python, gst_plugins_base, gst_plugins_good, gst_ffmpeg
|
||||||
|
, enableBonjour ? false, avahi ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert enableBonjour -> avahi != null;
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "miro-${version}";
|
name = "miro-${version}";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
@ -37,6 +42,9 @@ buildPythonPackage rec {
|
|||||||
c RESOURCE_ROOT = '"'$out/share/miro/resources/'"'
|
c RESOURCE_ROOT = '"'$out/share/miro/resources/'"'
|
||||||
}' \
|
}' \
|
||||||
plat/resources.py
|
plat/resources.py
|
||||||
|
'' + optionalString enableBonjour ''
|
||||||
|
sed -i -e 's|ctypes.cdll.LoadLibrary( *|ctypes.CDLL("${avahi}/lib/" +|' \
|
||||||
|
../lib/libdaap/pybonjour.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Disabled for now, because it requires networking and even if we skip those
|
# Disabled for now, because it requires networking and even if we skip those
|
||||||
@ -69,13 +77,13 @@ buildPythonPackage rec {
|
|||||||
pygobject pygtk pycurl python.modules.sqlite3 mutagen pycairo pythonDBus
|
pygobject pygtk pycurl python.modules.sqlite3 mutagen pycairo pythonDBus
|
||||||
pywebkitgtk libtorrentRasterbar
|
pywebkitgtk libtorrentRasterbar
|
||||||
gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
|
gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
|
||||||
];
|
] ++ optional enableBonjour avahi;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.getmiro.com/";
|
homepage = "http://www.getmiro.com/";
|
||||||
description = "Video and audio feed aggregator";
|
description = "Video and audio feed aggregator";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ stdenv.lib.maintainers.aszlig ];
|
maintainers = [ maintainers.aszlig ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6134,6 +6134,9 @@ let
|
|||||||
|
|
||||||
miro = callPackage ../applications/video/miro {
|
miro = callPackage ../applications/video/miro {
|
||||||
inherit (pythonPackages) pywebkitgtk pysqlite pycurl mutagen;
|
inherit (pythonPackages) pywebkitgtk pysqlite pycurl mutagen;
|
||||||
|
avahi = avahi.override {
|
||||||
|
withLibdnssdCompat = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mkvtoolnix = callPackage ../applications/video/mkvtoolnix { };
|
mkvtoolnix = callPackage ../applications/video/mkvtoolnix { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user