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