mumble,murmur: 1.2.19 -> 1.3.0 (#68800)

mumble,murmur: 1.2.19 -> 1.3.0
This commit is contained in:
Silvan Mosberger 2019-10-07 19:32:09 +02:00 committed by GitHub
commit ff41ef18c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 56 deletions

View File

@ -1,32 +1,28 @@
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkgconfig { stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkgconfig, mkDerivation
, qt4, qmake4Hook, qt5, avahi, boost, libopus, libsndfile, protobuf3_6, speex, libcap , qtbase, qttools, qtsvg, qmake, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
, alsaLib, python , alsaLib, python
, jackSupport ? false, libjack2 ? null , jackSupport ? false, libjack2 ? null
, speechdSupport ? false, speechd ? null , speechdSupport ? false, speechd ? null
, pulseSupport ? false, libpulseaudio ? null , pulseSupport ? false, libpulseaudio ? null
, iceSupport ? false, zeroc-ice ? null, zeroc-ice-36 ? null , iceSupport ? false, zeroc-ice ? null
}: }:
assert jackSupport -> libjack2 != null; assert jackSupport -> libjack2 != null;
assert speechdSupport -> speechd != null; assert speechdSupport -> speechd != null;
assert pulseSupport -> libpulseaudio != null; assert pulseSupport -> libpulseaudio != null;
assert iceSupport -> zeroc-ice != null && zeroc-ice-36 != null; assert iceSupport -> zeroc-ice != null;
with stdenv.lib; with stdenv.lib;
let let
generic = overrides: source: (if source.qtVersion == 5 then qt5.mkDerivation else stdenv.mkDerivation) (source // overrides // { generic = overrides: source: mkDerivation (source // overrides // {
name = "${overrides.type}-${source.version}"; name = "${overrides.type}-${source.version}";
patches = (source.patches or []) ++ optional jackSupport ./mumble-jack-support.patch; patches = (source.patches or []) ++ optional jackSupport ./mumble-jack-support.patch;
nativeBuildInputs = [ pkgconfig python ] nativeBuildInputs = [ pkgconfig python qmake ]
++ { qt4 = [ qmake4Hook ]; qt5 = [ qt5.qmake ]; }."qt${toString source.qtVersion}"
++ (overrides.nativeBuildInputs or [ ]); ++ (overrides.nativeBuildInputs or [ ]);
# protobuf is freezed to 3.6 because of this bug: https://github.com/mumble-voip/mumble/issues/3617 buildInputs = [ boost protobuf avahi ]
# this could be reverted to the latest version in a future release of mumble as it is already fixed in master
buildInputs = [ boost protobuf3_6 avahi ]
++ optional (source.qtVersion == 4) qt4
++ (overrides.buildInputs or [ ]); ++ (overrides.buildInputs or [ ]);
qmakeFlags = [ qmakeFlags = [
@ -76,9 +72,8 @@ let
client = source: generic { client = source: generic {
type = "mumble"; type = "mumble";
nativeBuildInputs = optional (source.qtVersion == 5) qt5.qttools; nativeBuildInputs = [ qttools ];
buildInputs = [ libopus libsndfile speex ] buildInputs = [ libopus libsndfile speex qtsvg ]
++ optional (source.qtVersion == 5) qt5.qtsvg
++ optional stdenv.isLinux alsaLib ++ optional stdenv.isLinux alsaLib
++ optional jackSupport libjack2 ++ optional jackSupport libjack2
++ optional speechdSupport speechd ++ optional speechdSupport speechd
@ -107,18 +102,18 @@ let
''; '';
} source; } source;
server = source: let ice = if source.qtVersion == 4 then zeroc-ice-36 else zeroc-ice; in generic { server = source: generic {
type = "murmur"; type = "murmur";
postPatch = optional iceSupport '' postPatch = optional iceSupport ''
grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${ice.dev}/share/ice/,g' grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${zeroc-ice.dev}/share/ice/,g'
''; '';
configureFlags = [ configureFlags = [
"CONFIG+=no-client" "CONFIG+=no-client"
] ++ optional (!iceSupport) "CONFIG+=no-ice"; ] ++ optional (!iceSupport) "CONFIG+=no-ice";
buildInputs = [ libcap ] ++ optional iceSupport ice; buildInputs = [ libcap ] ++ optional iceSupport zeroc-ice;
installPhase = '' installPhase = ''
# bin stuff # bin stuff
@ -126,48 +121,19 @@ let
''; '';
} source; } source;
stableSource = rec { source = rec {
version = "1.2.19"; version = "1.3.0";
qtVersion = 4;
src = fetchurl {
url = "https://github.com/mumble-voip/mumble/releases/download/${version}/mumble-${version}.tar.gz";
sha256 = "1s60vaici3v034jzzi20x23hsj6mkjlc0glipjq4hffrg9qgnizh";
};
patches = [
# Fix compile error against boost 1.66 (#33655):
(fetchpatch {
url = "https://github.com/mumble-voip/mumble/commit/"
+ "ea861fe86743c8402bbad77d8d1dd9de8dce447e.patch";
sha256 = "1r50dc8dcl6jmbj4abhnay9div7y56kpmajzqd7ql0pm853agwbh";
})
# Fixes hang on reconfiguring audio (often including startup)
# https://github.com/mumble-voip/mumble/pull/3418
(fetchpatch {
url = "https://github.com/mumble-voip/mumble/commit/"
+ "fbbdf2e8ab7d93ed6f7680268ad0689b7eaa71ad.patch";
sha256 = "1yhj62mlwm6q42i4aclbia645ha97d3j4ycxhgafr46dbjs0gani";
})
];
};
rcSource = rec {
version = "1.3.0-rc2";
qtVersion = 5;
# Needs submodules # Needs submodules
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mumble-voip"; owner = "mumble-voip";
repo = "mumble"; repo = "mumble";
rev = version; rev = version;
sha256 = "00irlzz5q4drmsfbwrkyy7p7w8a5fc1ip5vyicq3g3cy58dprpqr"; sha256 = "0g5ri84gg0x3crhpxlzawf9s9l4hdna6aqw6qbdpx1hjlf5k6g8k";
fetchSubmodules = true; fetchSubmodules = true;
}; };
}; };
in { in {
mumble = client stableSource; mumble = client source;
mumble_rc = client rcSource; murmur = server source;
murmur = server stableSource;
murmur_rc = server rcSource;
} }

View File

@ -443,8 +443,8 @@ mapAliases ({
}; };
# added 2019-08-01 # added 2019-08-01
mumble_git = pkgs.mumble_rc; mumble_git = pkgs.mumble;
murmur_git = pkgs.murmur_rc; murmur_git = pkgs.murmur;
# added 2019-09-06 # added 2019-09-06
zeroc_ice = pkgs.zeroc-ice; zeroc_ice = pkgs.zeroc-ice;

View File

@ -19667,13 +19667,18 @@ in
multimon-ng = callPackage ../applications/radio/multimon-ng { }; multimon-ng = callPackage ../applications/radio/multimon-ng { };
inherit (callPackages ../applications/networking/mumble { murmur = (libsForQt5.callPackage ../applications/networking/mumble {
avahi = avahi-compat;
pulseSupport = config.pulseaudio or false;
iceSupport = config.murmur.iceSupport or true;
}).murmur;
mumble = (libsForQt5.callPackage ../applications/networking/mumble {
avahi = avahi-compat; avahi = avahi-compat;
jackSupport = config.mumble.jackSupport or false; jackSupport = config.mumble.jackSupport or false;
speechdSupport = config.mumble.speechdSupport or false; speechdSupport = config.mumble.speechdSupport or false;
pulseSupport = config.pulseaudio or false; pulseSupport = config.pulseaudio or false;
iceSupport = config.murmur.iceSupport or true; }).mumble;
}) mumble mumble_rc murmur murmur_rc;
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix { mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
mumble_i686 = if stdenv.hostPlatform.system == "x86_64-linux" mumble_i686 = if stdenv.hostPlatform.system == "x86_64-linux"