git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #7263 from codyopel/mumble

mumble: refactor, add desktop file & icon

commit24b5ce084bb48ead81ef63026943581f2c7560ce authorlethalman <lucabru@src.gnome.org> dateWed 8 Apr 2015, 17:30 (12 years ago) parenta8f51b8344ccc7
1 file changed+33−22
pkgs/applications/networking/mumble/default.nix+33−22
pkgs/applications/networking/mumble/default.nix+33−22
@@ -1,11 +1,8 @@
1−{ stdenv, fetchurl, qt4, boost, protobuf, libsndfile
2−, speex, libopus, avahi, pkgconfig
3−, jackSupport ? false
4−, jack2 ? null
5−, speechdSupport ? false
6−, speechd ? null
7−, pulseSupport ? false
8−, pulseaudio ? null
1+{ stdenv, fetchurl, pkgconfig
2+, avahi, boost, libopus, libsndfile, protobuf, qt4, speex
3+, jackSupport ? false, jack2 ? null
4+, speechdSupport ? false, speechd ? null
5+, pulseSupport ? false, pulseaudio ? null
96}:
107
118assert jackSupport -> jack2 != null;
@@ -27,32 +24,46 @@ stdenv.mkDerivation rec {
2724
2825 patches = optional jackSupport ./mumble-jack-support.patch;
2926
27+ configureFlags = [
28+ "CONFIG+=shared"
29+ "CONFIG+=no-g15"
30+ "CONFIG+=packaged"
31+ "CONFIG+=no-update"
32+ "CONFIG+=no-server"
33+ "CONFIG+=no-embed-qt-translations"
34+ "CONFIG+=bundled-celt"
35+ "CONFIG+=no-bundled-opus"
36+ "CONFIG+=no-bundled-speex"
37+ ] ++ optional (!speechdSupport) "CONFIG+=no-speechd"
38+ ++ optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio";
39+
3040 configurePhase = ''
31− qmake CONFIG+=no-g15 CONFIG+=no-update CONFIG+=no-server \
32− CONFIG+=no-embed-qt-translations CONFIG+=packaged \
33− CONFIG+=bundled-celt CONFIG+=no-bundled-opus \
34− ${optionalString (!speechdSupport) "CONFIG+=no-speechd"} \
35− ${optionalString jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"} \
36− CONFIG+=no-bundled-speex
41+ qmake $configureFlags
3742 '';
3843
44+ nativeBuildInputs = [ pkgconfig ];
3945
40− buildInputs = [ qt4 boost protobuf libsndfile speex
41− libopus avahi pkgconfig ]
42− ++ (optional jackSupport jack2)
43− ++ (optional speechdSupport speechd)
44− ++ (optional pulseSupport pulseaudio);
46+ buildInputs = [ avahi boost libopus libsndfile protobuf qt4 speex ]
47+ ++ optional jackSupport jack2
48+ ++ optional speechdSupport speechd
49+ ++ optional pulseSupport pulseaudio;
4550
4651 installPhase = ''
4752 mkdir -p $out
4853 cp -r ./release $out/bin
54+
55+ mkdir -p $out/share/applications
56+ cp scripts/mumble.desktop $out/share/applications
57+
58+ mkdir -p $out/share/icons
59+ cp icons/mumble.svg $out/share/icons
4960 '';
5061
51− meta = with stdenv.lib; {
52− homepage = "http://mumble.sourceforge.net/";
62+ meta = with stdenv.lib; {
5363 description = "Low-latency, high quality voice chat software";
64+ homepage = "http://mumble.sourceforge.net/";
5465 license = licenses.bsd3;
55− platforms = platforms.linux;
5666 maintainers = with maintainers; [ viric ];
67+ platforms = platforms.linux;
5768 };
5869}