@@ -3,8 +3,13 @@
33, taglib, pysqlite, pycurl, mutagen, pycairo, pythonDBus, pywebkitgtk
44, libtorrentRasterbar, glib_networking, gsettings_desktop_schemas
55, gst_python, gst_plugins_base, gst_plugins_good, gst_ffmpeg
6+, enableBonjour ? false, avahi ? null
67}:
78
9+assert enableBonjour -> avahi != null;
10+
11+with stdenv.lib;
12+
813buildPythonPackage rec {
914 name = "miro-${version}";
1015 namePrefix = "";
@@ -37,6 +42,9 @@ buildPythonPackage rec {
3742 c RESOURCE_ROOT = '"'$out/share/miro/resources/'"'
3843 }' \
3944 plat/resources.py
45+ '' + optionalString enableBonjour ''
46+ sed -i -e 's|ctypes.cdll.LoadLibrary( *|ctypes.CDLL("${avahi}/lib/" +|' \
47+ ../lib/libdaap/pybonjour.py
4048 '';
4149
4250 # Disabled for now, because it requires networking and even if we skip those
@@ -69,13 +77,13 @@ buildPythonPackage rec {
6977 pygobject pygtk pycurl python.modules.sqlite3 mutagen pycairo pythonDBus
7078 pywebkitgtk libtorrentRasterbar
7179 gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
72− ];
80+ ] ++ optional enableBonjour avahi;
7381
7482 meta = {
7583 homepage = "http://www.getmiro.com/";
7684 description = "Video and audio feed aggregator";
77− license = stdenv.lib.licenses.gpl2Plus;
78− maintainers = [ stdenv.lib.maintainers.aszlig ];
79− platforms = stdenv.lib.platforms.linux;
85+ license = licenses.gpl2Plus;
86+ maintainers = [ maintainers.aszlig ];
87+ platforms = platforms.linux;
8088 };
8189}