2014-01-30 17:01:22 -08:00
|
|
|
{ stdenv, fetchurl, qt4, boost, protobuf, libsndfile
|
|
|
|
, speex, libopus, avahi, pkgconfig
|
|
|
|
, jackSupport ? false
|
2014-07-31 03:47:17 -07:00
|
|
|
, jack2 ? null
|
2014-01-30 17:01:22 -08:00
|
|
|
, speechdSupport ? false
|
|
|
|
, speechd ? null
|
2015-01-10 12:36:17 -08:00
|
|
|
, pulseSupport ? false
|
|
|
|
, pulseaudio ? null
|
2014-01-30 17:01:22 -08:00
|
|
|
}:
|
|
|
|
|
2014-07-31 03:47:17 -07:00
|
|
|
assert jackSupport -> jack2 != null;
|
2014-01-30 17:01:22 -08:00
|
|
|
assert speechdSupport -> speechd != null;
|
2015-01-10 12:36:17 -08:00
|
|
|
assert pulseSupport -> pulseaudio != null;
|
2014-01-30 17:01:22 -08:00
|
|
|
|
|
|
|
let
|
|
|
|
optional = stdenv.lib.optional;
|
|
|
|
optionalString = stdenv.lib.optionalString;
|
|
|
|
in
|
2011-02-10 11:23:27 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mumble-" + version;
|
2014-10-07 10:19:47 -07:00
|
|
|
version = "1.2.8";
|
2011-02-10 11:23:27 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mumble/${name}.tar.gz";
|
2014-10-07 10:19:47 -07:00
|
|
|
sha256 = "0ng1xd7i0951kqnd9visf84y2dcwia79a1brjwfvr1wnykgw6bsc";
|
2011-02-10 11:23:27 -08:00
|
|
|
};
|
|
|
|
|
2014-01-30 17:01:22 -08:00
|
|
|
patches = optional jackSupport ./mumble-jack-support.patch;
|
2011-02-10 11:23:27 -08:00
|
|
|
|
2011-02-12 12:31:25 -08:00
|
|
|
configurePhase = ''
|
2013-11-21 02:22:04 -08:00
|
|
|
qmake CONFIG+=no-g15 CONFIG+=no-update CONFIG+=no-server \
|
|
|
|
CONFIG+=no-embed-qt-translations CONFIG+=packaged \
|
|
|
|
CONFIG+=bundled-celt CONFIG+=no-bundled-opus \
|
2014-01-30 17:01:22 -08:00
|
|
|
${optionalString (!speechdSupport) "CONFIG+=no-speechd"} \
|
|
|
|
${optionalString jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"} \
|
2013-11-21 02:22:04 -08:00
|
|
|
CONFIG+=no-bundled-speex
|
2011-02-12 12:31:25 -08:00
|
|
|
'';
|
2011-02-10 11:23:27 -08:00
|
|
|
|
2011-05-10 00:07:35 -07:00
|
|
|
|
2014-01-30 17:01:22 -08:00
|
|
|
buildInputs = [ qt4 boost protobuf libsndfile speex
|
2013-11-21 02:22:04 -08:00
|
|
|
libopus avahi pkgconfig ]
|
2014-07-31 03:47:17 -07:00
|
|
|
++ (optional jackSupport jack2)
|
2015-01-10 12:36:17 -08:00
|
|
|
++ (optional speechdSupport speechd)
|
|
|
|
++ (optional pulseSupport pulseaudio);
|
2011-02-10 11:23:27 -08:00
|
|
|
|
2011-04-17 01:27:04 -07:00
|
|
|
installPhase = ''
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p $out
|
2011-04-17 01:27:04 -07:00
|
|
|
cp -r ./release $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-01-30 17:01:22 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://mumble.sourceforge.net/";
|
2011-02-10 11:23:27 -08:00
|
|
|
description = "Low-latency, high quality voice chat software";
|
2014-01-30 17:01:22 -08:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ viric ];
|
2011-02-10 11:23:27 -08:00
|
|
|
};
|
|
|
|
}
|