@@ -3,10 +3,7 @@
33
44# Optional dependencies
55, libjack2 ? null, dbus ? null, dbus_cplusplus ? null, alsaLib ? null
6−, pyqt4 ? null, xdg_utils ? null
7−
8−, glibmm
9−, pythonDBus, qt4
6+, pyqt4 ? null, pythonDBus ? null, xdg_utils ? null
107
118# Other Flags
129, prefix ? ""
@@ -23,6 +20,7 @@ let
2320 optDbus_cplusplus = shouldUsePkg dbus_cplusplus;
2421 optAlsaLib = shouldUsePkg alsaLib;
2522 optPyqt4 = shouldUsePkg pyqt4;
23+ optPythonDBus = shouldUsePkg pythonDBus;
2624 optXdg_utils = shouldUsePkg xdg_utils;
2725in
2826stdenv.mkDerivation rec {
@@ -41,9 +39,6 @@ stdenv.mkDerivation rec {
4139 ] ++ stdenv.lib.optionals (!libOnly) [
4240 optLibjack2 optDbus optDbus_cplusplus optAlsaLib optPyqt4
4341 optXdg_utils
44− # dbus dbus_cplusplus glibmm
45− # pyqt4
46− # python pythonDBus qt4
4742 ];
4843
4944 patches = [ ./build-fix.patch ];
@@ -76,11 +71,12 @@ stdenv.mkDerivation rec {
7671 LIBDIR=$out/lib INCLUDEDIR=$out/include install
7772 '' else ''
7873 scons PREFIX=$out PYPKGDIR=$PYDIR UDEVDIR=$out/lib/udev/rules.d install
79−
74+ '' + stdenv.lib.optionalString (optPyqt4 != null && optPythonDBus != null) ''
8075 wrapProgram $out/bin/ffado-mixer --prefix PYTHONPATH : \
81− $PYTHONPATH:$PYDIR:${pyqt4}/$LIBSUFFIX:${pythonDBus}/$LIBSUFFIX:
76+ $PYTHONPATH:$PYDIR:${optPyqt4}/$LIBSUFFIX:${optPythonDBus}/$LIBSUFFIX:
77+
8278 wrapProgram $out/bin/ffado-diag --prefix PYTHONPATH : \
83− $PYTHONPATH:$PYDIR:$out/share/libffado/python:${pyqt4}/$LIBSUFFIX:${pythonDBus}/$LIBSUFFIX:
79+ $PYTHONPATH:$PYDIR:$out/share/libffado/python:${optPyqt4}/$LIBSUFFIX:${optPythonDBus}/$LIBSUFFIX:
8480 '';
8581
8682 meta = with stdenv.lib; {