2014-01-31 02:01:22 +01:00
|
|
|
{ stdenv, fetchurl, qt4, boost, protobuf, libsndfile
|
|
|
|
, speex, libopus, avahi, pkgconfig
|
|
|
|
, jackSupport ? false
|
|
|
|
, jackaudio ? null
|
|
|
|
, speechdSupport ? false
|
|
|
|
, speechd ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert jackSupport -> jackaudio != null;
|
|
|
|
assert speechdSupport -> speechd != null;
|
|
|
|
|
|
|
|
let
|
|
|
|
optional = stdenv.lib.optional;
|
|
|
|
optionalString = stdenv.lib.optionalString;
|
|
|
|
in
|
2011-02-10 20:23:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mumble-" + version;
|
2014-02-08 04:29:29 +01:00
|
|
|
version = "1.2.5";
|
2011-02-10 20:23:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mumble/${name}.tar.gz";
|
2014-02-08 04:29:29 +01:00
|
|
|
sha256 = "1bsgains6xgpgpd1b5bq682z0kswp5fcjh2cir4c4qkndya5clci";
|
2011-02-10 20:23:27 +01:00
|
|
|
};
|
|
|
|
|
2014-01-31 02:01:22 +01:00
|
|
|
patches = optional jackSupport ./mumble-jack-support.patch;
|
2011-02-10 20:23:27 +01:00
|
|
|
|
2011-02-12 21:31:25 +01:00
|
|
|
configurePhase = ''
|
2013-11-21 11:22:04 +01: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-31 02:01:22 +01:00
|
|
|
${optionalString (!speechdSupport) "CONFIG+=no-speechd"} \
|
|
|
|
${optionalString jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"} \
|
2013-11-21 11:22:04 +01:00
|
|
|
CONFIG+=no-bundled-speex
|
2011-02-12 21:31:25 +01:00
|
|
|
'';
|
2011-02-10 20:23:27 +01:00
|
|
|
|
2011-05-10 09:07:35 +02:00
|
|
|
|
2014-01-31 02:01:22 +01:00
|
|
|
buildInputs = [ qt4 boost protobuf libsndfile speex
|
2013-11-21 11:22:04 +01:00
|
|
|
libopus avahi pkgconfig ]
|
2014-01-31 02:01:22 +01:00
|
|
|
++ (optional jackSupport jackaudio)
|
|
|
|
++ (optional speechdSupport speechd);
|
2011-02-10 20:23:27 +01:00
|
|
|
|
2011-04-17 10:27:04 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2011-04-17 10:27:04 +02:00
|
|
|
cp -r ./release $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-01-31 02:01:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://mumble.sourceforge.net/";
|
2011-02-10 20:23:27 +01:00
|
|
|
description = "Low-latency, high quality voice chat software";
|
2014-01-31 02:01:22 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ viric ];
|
2011-02-10 20:23:27 +01:00
|
|
|
};
|
|
|
|
}
|