Merge pull request #1638 from wkennington/cache.mumble

Add more configurable options to mumble

+137 -25
+24 -17
pkgs/applications/networking/mumble/default.nix
··· 1 - { stdenv, fetchurl, qt4, boost, speechd, protobuf, libsndfile, 2 - speex, libopus, avahi, pkgconfig, 3 - jackSupport ? false, 4 - jackaudio ? null }: 1 + { stdenv, fetchurl, qt4, boost, protobuf, libsndfile 2 + , speex, libopus, avahi, pkgconfig 3 + , jackSupport ? false 4 + , jackaudio ? null 5 + , speechdSupport ? false 6 + , speechd ? null 7 + }: 5 8 9 + assert jackSupport -> jackaudio != null; 10 + assert speechdSupport -> speechd != null; 6 11 12 + let 13 + optional = stdenv.lib.optional; 14 + optionalString = stdenv.lib.optionalString; 15 + in 7 16 stdenv.mkDerivation rec { 8 17 name = "mumble-" + version; 9 18 version = "1.2.4"; ··· 13 22 sha256 = "16wwj6gwcnyjlnzh7wk0l255ldxmbwx0wi652sdp20lsv61q7kx1"; 14 23 }; 15 24 16 - patchPhase = '' 17 - patch -p1 < ${ ./mumble-jack-support.patch } 18 - ''; 25 + patches = optional jackSupport ./mumble-jack-support.patch; 19 26 20 27 configurePhase = '' 21 28 qmake CONFIG+=no-g15 CONFIG+=no-update CONFIG+=no-server \ 22 29 CONFIG+=no-embed-qt-translations CONFIG+=packaged \ 23 30 CONFIG+=bundled-celt CONFIG+=no-bundled-opus \ 31 + ${optionalString (!speechdSupport) "CONFIG+=no-speechd"} \ 32 + ${optionalString jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"} \ 24 33 CONFIG+=no-bundled-speex 25 - '' 26 - + stdenv.lib.optionalString jackSupport '' 27 - CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio 28 34 ''; 29 35 30 36 31 - buildInputs = [ qt4 boost speechd protobuf libsndfile speex 37 + buildInputs = [ qt4 boost protobuf libsndfile speex 32 38 libopus avahi pkgconfig ] 33 - ++ (stdenv.lib.optional jackSupport jackaudio); 39 + ++ (optional jackSupport jackaudio) 40 + ++ (optional speechdSupport speechd); 34 41 35 42 installPhase = '' 36 43 mkdir -p $out 37 44 cp -r ./release $out/bin 38 45 ''; 39 46 40 - meta = { 41 - homepage = http://mumble.sourceforge.net/; 47 + meta = with stdenv.lib; { 48 + homepage = "http://mumble.sourceforge.net/"; 42 49 description = "Low-latency, high quality voice chat software"; 43 - license = "BSD"; 44 - platforms = with stdenv.lib.platforms; linux; 45 - maintainers = with stdenv.lib.maintainers; [viric]; 50 + license = licenses.bsd3; 51 + platforms = platforms.linux; 52 + maintainers = with maintainers; [ viric ]; 46 53 }; 47 54 }
+24 -8
pkgs/applications/networking/mumble/murmur.nix
··· 1 - { stdenv, fetchurl, qt4, boost, protobuf, avahi, libcap, pkgconfig }: 1 + { stdenv, fetchurl, qt4, boost, protobuf 2 + , avahi, libcap, pkgconfig 3 + , iceSupport ? false 4 + , zeroc_ice ? null 5 + }: 6 + 7 + assert iceSupport -> zeroc_ice != null; 2 8 9 + let 10 + optional = stdenv.lib.optional; 11 + optionalString = stdenv.lib.optionalString; 12 + in 3 13 stdenv.mkDerivation rec { 4 14 name = "murmur-" + version; 5 15 version = "1.2.4"; ··· 8 18 url = "mirror://sourceforge/mumble/mumble-${version}.tar.gz"; 9 19 sha256 = "16wwj6gwcnyjlnzh7wk0l255ldxmbwx0wi652sdp20lsv61q7kx1"; 10 20 }; 21 + 22 + patchPhase = optional iceSupport '' 23 + sed -i 's,/usr/share/Ice/,${zeroc_ice}/,g' src/murmur/murmur.pro 24 + ''; 11 25 12 26 configurePhase = '' 13 - qmake CONFIG+=no-client CONFIG+=no-ice CONFIG+=no-embed-qt 27 + qmake CONFIG+=no-client CONFIG+=no-embed-qt \ 28 + ${optionalString (!iceSupport) "CONFIG+=no-ice"} 14 29 ''; 15 30 16 - buildInputs = [ qt4 boost protobuf avahi libcap pkgconfig ]; 31 + buildInputs = [ qt4 boost protobuf avahi libcap pkgconfig ] 32 + ++ optional iceSupport [ zeroc_ice ]; 17 33 18 34 installPhase = '' 19 35 mkdir -p $out 20 36 cp -r ./release $out/bin 21 37 ''; 22 38 23 - meta = { 24 - homepage = http://mumble.sourceforge.net/; 39 + meta = with stdenv.lib; { 40 + homepage = "http://mumble.sourceforge.net/"; 25 41 description = "Low-latency, high quality voice chat software"; 26 - license = "BSD"; 27 - platforms = with stdenv.lib.platforms; linux; 28 - maintainers = with stdenv.lib.maintainers; [viric]; 42 + license = licenses.bsd3; 43 + platforms = platforms.linux; 44 + maintainers = with maintainers; [ viric ]; 29 45 }; 30 46 }
+19
pkgs/development/compilers/mcpp/default.nix
··· 1 + { stdenv, fetchurl, mcpp }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mcpp-2.7.2"; 5 + 6 + src = fetchurl { 7 + url = "mirror://sourceforge/mcpp/${name}.tar.gz"; 8 + sha256 = "0r48rfghjm90pkdyr4khxg783g9v98rdx2n69xn8f6c5i0hl96rv"; 9 + }; 10 + 11 + configureFlags = [ "--enable-mcpplib" ]; 12 + 13 + meta = with stdenv.lib; { 14 + homepage = "http://mcpp.sourceforge.net/"; 15 + description = "A portable c preprocessor"; 16 + license = licenses.bsd2; 17 + platforms = platforms.unix; 18 + }; 19 + }
+32
pkgs/development/libraries/db/db-5.3.nix
··· 1 + { stdenv, fetchurl 2 + , cxxSupport ? true 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + name = "db-5.3.28"; 7 + 8 + src = fetchurl { 9 + url = "http://download.oracle.com/berkeley-db/${name}.tar.gz"; 10 + sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"; 11 + }; 12 + 13 + configureFlags = [ 14 + (if cxxSupport then "--enable-cxx" else "--disable-cxx") 15 + ]; 16 + 17 + preConfigure = '' 18 + cd build_unix 19 + configureScript=../dist/configure 20 + ''; 21 + 22 + postInstall = '' 23 + rm -rf $out/docs 24 + ''; 25 + 26 + meta = with stdenv.lib; { 27 + homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html"; 28 + description = "Berkeley DB"; 29 + license = "Berkeley Database License"; 30 + platforms = platforms.unix; 31 + }; 32 + }
+28
pkgs/development/libraries/zeroc-ice/default.nix
··· 1 + { stdenv, fetchurl, mcpp, bzip2, expat, openssl, db5 }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "zeroc-ice-3.5.1"; 5 + 6 + src = fetchurl { 7 + url = "http://www.zeroc.com/download/Ice/3.5/Ice-3.5.1.tar.gz"; 8 + sha256 = "14pk794p0fq3hcp50xmqnf9pp15dggiqhcnsav8xpnka9hcm37lq"; 9 + }; 10 + 11 + buildInputs = [ mcpp bzip2 expat openssl db5 ]; 12 + 13 + buildPhase = '' 14 + cd cpp 15 + make OPTIMIZE=yes 16 + ''; 17 + 18 + installPhase = '' 19 + make prefix=$out install 20 + ''; 21 + 22 + meta = with stdenv.lib; { 23 + homepage = "http://www.zeroc.com/ice.html"; 24 + description = "The internet communications engine"; 25 + license = licenses.gpl2; 26 + platforms = platforms.unix; 27 + }; 28 + }
+10
pkgs/top-level/all-packages.nix
··· 3969 3969 3970 3970 db48 = callPackage ../development/libraries/db4/db4-4.8.nix { }; 3971 3971 3972 + db5 = db53; 3973 + 3974 + db53 = callPackage ../development/libraries/db/db-5.3.nix { }; 3975 + 3972 3976 dbus = callPackage ../development/libraries/dbus { }; 3973 3977 dbus_cplusplus = callPackage ../development/libraries/dbus-cplusplus { }; 3974 3978 dbus_glib = callPackage ../development/libraries/dbus-glib { }; ··· 8275 8279 8276 8280 matchbox = callPackage ../applications/window-managers/matchbox { }; 8277 8281 8282 + mcpp = callPackage ../development/compilers/mcpp { }; 8283 + 8278 8284 mda_lv2 = callPackage ../applications/audio/mda-lv2 { }; 8279 8285 8280 8286 meld = callPackage ../applications/version-management/meld { ··· 8403 8409 withLibdnssdCompat = true; 8404 8410 }; 8405 8411 jackSupport = config.mumble.jackSupport or false; 8412 + speechdSupport = config.mumble.speechdSupport or false; 8406 8413 }; 8407 8414 8408 8415 murmur = callPackage ../applications/networking/mumble/murmur.nix { 8409 8416 avahi = avahi.override { 8410 8417 withLibdnssdCompat = true; 8411 8418 }; 8419 + iceSupport = config.murmur.iceSupport or true; 8412 8420 }; 8413 8421 8414 8422 mutt = callPackage ../applications/networking/mailreaders/mutt { }; ··· 9166 9174 import ../applications/misc/zathura { inherit callPackage pkgs fetchurl; }); 9167 9175 9168 9176 zathura = zathuraCollection.zathuraWrapper; 9177 + 9178 + zeroc_ice = callPackage ../development/libraries/zeroc-ice { }; 9169 9179 9170 9180 girara = callPackage ../applications/misc/girara { 9171 9181 gtk = gtk3;