2011-02-10 19:23:27 +00:00
|
|
|
{ stdenv, fetchurl, qt4, libvorbis, boost, speechd, protobuf, libsndfile,
|
2011-05-10 08:07:35 +01:00
|
|
|
avahi, dbus, libcap,
|
|
|
|
jackSupport ? false,
|
|
|
|
jackaudio ? null }:
|
|
|
|
|
2011-04-17 09:27:04 +01:00
|
|
|
|
2011-02-10 19:23:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mumble-" + version;
|
|
|
|
version = "1.2.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mumble/${name}.tar.gz";
|
|
|
|
sha256 = "1s4vlkdfmyzx7h3i4060q0sf2xywl9sm6dpjhaa150blbcylwmic";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e s/qt_ja_JP.qm// -i src/mumble/mumble.pro src/mumble11x/mumble11x.pro
|
|
|
|
sed -e /qt_ja_JP.qm/d -i src/mumble/mumble_qt.qrc src/mumble11x/mumble_qt.qrc
|
2011-05-10 08:07:35 +01:00
|
|
|
patch -p1 < ${ ./mumble-jack-support.patch }
|
2011-02-10 19:23:27 +00:00
|
|
|
'';
|
|
|
|
|
2011-02-12 20:31:25 +00:00
|
|
|
configurePhase = ''
|
2011-04-17 09:27:04 +01:00
|
|
|
qmake CONFIG+=no-g15 CONFIG+=no-update \
|
2011-05-10 08:07:35 +01:00
|
|
|
CONFIG+=no-embed-qt-translations CONFIG+=no-ice \
|
|
|
|
''
|
|
|
|
+ stdenv.lib.optionalString jackSupport ''
|
|
|
|
CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio
|
2011-02-12 20:31:25 +00:00
|
|
|
'';
|
2011-02-10 19:23:27 +00:00
|
|
|
|
2011-05-10 08:07:35 +01:00
|
|
|
|
2011-02-12 20:31:25 +00:00
|
|
|
buildInputs = [ qt4 libvorbis boost speechd protobuf libsndfile avahi dbus
|
2011-05-10 08:07:35 +01:00
|
|
|
libcap ]
|
|
|
|
++ (stdenv.lib.optional jackSupport jackaudio);
|
2011-02-10 19:23:27 +00:00
|
|
|
|
2011-04-17 09:27:04 +01:00
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out
|
|
|
|
cp -r ./release $out/bin
|
|
|
|
'';
|
|
|
|
|
2011-02-10 19:23:27 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://mumble.sourceforge.net/;
|
|
|
|
description = "Low-latency, high quality voice chat software";
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|