2013-11-21 14:22:04 +04:00
|
|
|
{ stdenv, fetchurl, qt4, boost, speechd, protobuf, libsndfile,
|
2013-12-05 17:47:54 +04:00
|
|
|
speex, libopus, avahi, pkgconfig,
|
2011-05-10 11:07:35 +04:00
|
|
|
jackSupport ? false,
|
|
|
|
jackaudio ? null }:
|
|
|
|
|
2011-04-17 12:27:04 +04:00
|
|
|
|
2011-02-10 22:23:27 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mumble-" + version;
|
2013-06-21 13:10:41 +04:00
|
|
|
version = "1.2.4";
|
2011-02-10 22:23:27 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mumble/${name}.tar.gz";
|
2013-06-21 13:10:41 +04:00
|
|
|
sha256 = "16wwj6gwcnyjlnzh7wk0l255ldxmbwx0wi652sdp20lsv61q7kx1";
|
2011-02-10 22:23:27 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2011-05-10 11:07:35 +04:00
|
|
|
patch -p1 < ${ ./mumble-jack-support.patch }
|
2011-02-10 22:23:27 +03:00
|
|
|
'';
|
|
|
|
|
2011-02-12 23:31:25 +03:00
|
|
|
configurePhase = ''
|
2013-11-21 14:22:04 +04: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 \
|
|
|
|
CONFIG+=no-bundled-speex
|
2011-05-10 11:07:35 +04:00
|
|
|
''
|
|
|
|
+ stdenv.lib.optionalString jackSupport ''
|
|
|
|
CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio
|
2011-02-12 23:31:25 +03:00
|
|
|
'';
|
2011-02-10 22:23:27 +03:00
|
|
|
|
2011-05-10 11:07:35 +04:00
|
|
|
|
2013-11-21 14:22:04 +04:00
|
|
|
buildInputs = [ qt4 boost speechd protobuf libsndfile speex
|
|
|
|
libopus avahi pkgconfig ]
|
2011-05-10 11:07:35 +04:00
|
|
|
++ (stdenv.lib.optional jackSupport jackaudio);
|
2011-02-10 22:23:27 +03:00
|
|
|
|
2011-04-17 12:27:04 +04:00
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out
|
2011-04-17 12:27:04 +04:00
|
|
|
cp -r ./release $out/bin
|
|
|
|
'';
|
|
|
|
|
2011-02-10 22:23:27 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://mumble.sourceforge.net/;
|
|
|
|
description = "Low-latency, high quality voice chat software";
|
|
|
|
license = "BSD";
|
2013-05-24 12:23:22 +04:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2011-02-10 22:23:27 +03:00
|
|
|
};
|
|
|
|
}
|