git.iko.soy/typeable/nixpkgs
on master help sign in
miro: Add support for video/audio library sharing.

This is done using the Avahi/Bonjour compatibility library. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commitc1f55dcd35188b53a8a81bf7a243df12753802f3 authoraszlig <aszlig@redmoonstudios.org> dateTue 14 Oct 2014, 19:44 (12 years ago) parentfc11a7e
2 files changed+15−4
pkgs/applications/video/miro/default.nix+12−4 pkgs/top-level/all-packages.nix+3
pkgs/applications/video/miro/default.nix+12−4
@@ -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}
pkgs/top-level/all-packages.nix+3
@@ -6134,6 +6134,9 @@ let
61346134
61356135 miro = callPackage ../applications/video/miro {
61366136 inherit (pythonPackages) pywebkitgtk pysqlite pycurl mutagen;
6137+ avahi = avahi.override {
6138+ withLibdnssdCompat = true;
6139+ };
61376140 };
61386141
61396142 mkvtoolnix = callPackage ../applications/video/mkvtoolnix { };