mumble: refactor, add desktop file & add icon
This commit is contained in:
parent
bee0ccd1f5
commit
344ccc7faa
@ -1,11 +1,8 @@
|
|||||||
{ stdenv, fetchurl, qt4, boost, protobuf, libsndfile
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, speex, libopus, avahi, pkgconfig
|
, avahi, boost, libopus, libsndfile, protobuf, qt4, speex
|
||||||
, jackSupport ? false
|
, jackSupport ? false, jack2 ? null
|
||||||
, jack2 ? null
|
, speechdSupport ? false, speechd ? null
|
||||||
, speechdSupport ? false
|
, pulseSupport ? false, pulseaudio ? null
|
||||||
, speechd ? null
|
|
||||||
, pulseSupport ? false
|
|
||||||
, pulseaudio ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert jackSupport -> jack2 != null;
|
assert jackSupport -> jack2 != null;
|
||||||
@ -27,32 +24,46 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = optional jackSupport ./mumble-jack-support.patch;
|
patches = optional jackSupport ./mumble-jack-support.patch;
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"CONFIG+=shared"
|
||||||
|
"CONFIG+=no-g15"
|
||||||
|
"CONFIG+=packaged"
|
||||||
|
"CONFIG+=no-update"
|
||||||
|
"CONFIG+=no-server"
|
||||||
|
"CONFIG+=no-embed-qt-translations"
|
||||||
|
"CONFIG+=bundled-celt"
|
||||||
|
"CONFIG+=no-bundled-opus"
|
||||||
|
"CONFIG+=no-bundled-speex"
|
||||||
|
] ++ optional (!speechdSupport) "CONFIG+=no-speechd"
|
||||||
|
++ optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
qmake CONFIG+=no-g15 CONFIG+=no-update CONFIG+=no-server \
|
qmake $configureFlags
|
||||||
CONFIG+=no-embed-qt-translations CONFIG+=packaged \
|
|
||||||
CONFIG+=bundled-celt CONFIG+=no-bundled-opus \
|
|
||||||
${optionalString (!speechdSupport) "CONFIG+=no-speechd"} \
|
|
||||||
${optionalString jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"} \
|
|
||||||
CONFIG+=no-bundled-speex
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ qt4 boost protobuf libsndfile speex
|
buildInputs = [ avahi boost libopus libsndfile protobuf qt4 speex ]
|
||||||
libopus avahi pkgconfig ]
|
++ optional jackSupport jack2
|
||||||
++ (optional jackSupport jack2)
|
++ optional speechdSupport speechd
|
||||||
++ (optional speechdSupport speechd)
|
++ optional pulseSupport pulseaudio;
|
||||||
++ (optional pulseSupport pulseaudio);
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r ./release $out/bin
|
cp -r ./release $out/bin
|
||||||
|
|
||||||
|
mkdir -p $out/share/applications
|
||||||
|
cp scripts/mumble.desktop $out/share/applications
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
cp icons/mumble.svg $out/share/icons
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://mumble.sourceforge.net/";
|
|
||||||
description = "Low-latency, high quality voice chat software";
|
description = "Low-latency, high quality voice chat software";
|
||||||
|
homepage = "http://mumble.sourceforge.net/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ viric ];
|
maintainers = with maintainers; [ viric ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user