anchor.diff:        "CONFIG+=bundled-celt"
         "CONFIG+=no-bundled-opus"
         "CONFIG+=no-bundled-speex"
  -    ] ++ optional (!speechdSupport) "CONFIG+=no-speechd"
  -      ++ optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"
  -      ++ (overrides.configureFlags or [ ]);
  +    ] ++ optionals (!speechdSupport) [
  +      "CONFIG+=no-speechd"
  +    ] ++ optionals jackSupport [
  +      "CONFIG+=no-oss"
  +      "CONFIG+=no-alsa"
  +      "CONFIG+=jackaudio"
  +    ];
   
       configurePhase = ''
         qmake $configureFlags DEFINES+="PLUGIN_PATH=$out/lib"
       '';
   
  -    makeFlags = [ "release" ];
  +    makeFlags = [
  +      "release"
  +    ];
   
       installPhase = ''
         mkdir -p $out/{lib,bin}
  
positive.code: { stdenv, fetchurl, fetchgit, pkgconfig
  , qt4, qt5, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
  , alsaLib
  , jackSupport ? false, libjack2 ? null
  , speechdSupport ? false, speechd ? null
  , pulseSupport ? false, libpulseaudio ? null
  , iceSupport ? false, zeroc_ice ? null
  }:
  
  assert jackSupport -> libjack2 != null;
  assert speechdSupport -> speechd != null;
  assert pulseSupport -> libpulseaudio != null;
  assert iceSupport -> zeroc_ice != null;
  
  with stdenv.lib;
  let
    generic = overrides: source: stdenv.mkDerivation (source // overrides // {
      name = "${overrides.type}-${source.version}";
  
      patches = optional jackSupport ./mumble-jack-support.patch;
  
      nativeBuildInputs = [ pkgconfig ]
        ++ { qt4 = [ qt4 ]; qt5 = [ qt5.qtbase ]; }."qt${toString source.qtVersion}"
        ++ (overrides.nativeBuildInputs or [ ]);
      buildInputs = [ boost protobuf avahi ]
        ++ { qt4 = [ qt4 ]; qt5 = [ qt5.qtbase ]; }."qt${toString source.qtVersion}"
        ++ (overrides.buildInputs or [ ]);
  
      configureFlags = [
        "CONFIG+=shared"
        "CONFIG+=no-g15"
        "CONFIG+=packaged"
  
negative.code:       cp man/mum* $out/share/man/man1
      '' + (overrides.installPhase or "");
  
      meta = with stdenv.lib; {
        description = "Low-latency, high quality voice chat software";
        homepage = "http://mumble.sourceforge.net/";
        license = licenses.bsd3;
        maintainers = with maintainers; [
          wkennington
        ];
        platforms = with platforms;
          x86_64-linux;
      };
    });
  
    client = source: generic {
      type = "mumble";
  
      nativeBuildInputs = optionals (source.qtVersion == 5) [
        qt5.qttools
      ];
  
      buildInputs = [
        alsa-lib
        libopus
        libsndfile
        speex
      ] ++ optionals (source.qtVersion == 5) [
        qt5.qtsvg
      ] ++ optionals jackSupport [
        jack2_lib
      ] ++ optionals speechdSupport [
        speechd
      ] ++ optionals pulseSupport [
        pulseaudio_lib
      ];
  
      configureFlags = [
        "CONFIG+=no-server"
  