3
0
Fork 0
forked from mirrors/nixpkgs

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:
aszlig 2014-10-14 19:44:16 +02:00
parent fc11a7e03e
commit c1f55dcd35
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961
2 changed files with 15 additions and 4 deletions

View file

@ -3,8 +3,13 @@
, taglib, pysqlite, pycurl, mutagen, pycairo, pythonDBus, pywebkitgtk
, libtorrentRasterbar, glib_networking, gsettings_desktop_schemas
, gst_python, gst_plugins_base, gst_plugins_good, gst_ffmpeg
, enableBonjour ? false, avahi ? null
}:
assert enableBonjour -> avahi != null;
with stdenv.lib;
buildPythonPackage rec {
name = "miro-${version}";
namePrefix = "";
@ -37,6 +42,9 @@ buildPythonPackage rec {
c RESOURCE_ROOT = '"'$out/share/miro/resources/'"'
}' \
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
@ -69,13 +77,13 @@ buildPythonPackage rec {
pygobject pygtk pycurl python.modules.sqlite3 mutagen pycairo pythonDBus
pywebkitgtk libtorrentRasterbar
gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
];
] ++ optional enableBonjour avahi;
meta = {
homepage = "http://www.getmiro.com/";
description = "Video and audio feed aggregator";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.aszlig ];
platforms = stdenv.lib.platforms.linux;
license = licenses.gpl2Plus;
maintainers = [ maintainers.aszlig ];
platforms = platforms.linux;
};
}

View file

@ -6134,6 +6134,9 @@ let
miro = callPackage ../applications/video/miro {
inherit (pythonPackages) pywebkitgtk pysqlite pycurl mutagen;
avahi = avahi.override {
withLibdnssdCompat = true;
};
};
mkvtoolnix = callPackage ../applications/video/mkvtoolnix { };