mumble,murmur: 1.3.4 -> 1.4.231
Update version to 1.4.231. Build 231 points to a specific commit from the 1.4.x branch adding many fixes and improvements. Since this version is an unofficial release, add an unstable prefix to the version string in Nixpkgs. Signed-off-by: Felix Singer <felixsinger@posteo.net> Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
parent
c710148f70
commit
c267e9ce37
|
@ -306,7 +306,7 @@ in
|
||||||
Type = if forking then "forking" else "simple";
|
Type = if forking then "forking" else "simple";
|
||||||
PIDFile = mkIf forking "/run/murmur/murmurd.pid";
|
PIDFile = mkIf forking "/run/murmur/murmurd.pid";
|
||||||
EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile;
|
||||||
ExecStart = "${cfg.package}/bin/murmurd -ini /run/murmur/murmurd.ini";
|
ExecStart = "${cfg.package}/bin/mumble-server -ini /run/murmur/murmurd.ini";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RuntimeDirectory = "murmur";
|
RuntimeDirectory = "murmur";
|
||||||
RuntimeDirectoryMode = "0700";
|
RuntimeDirectoryMode = "0700";
|
||||||
|
|
|
@ -1,62 +1,39 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, pkg-config, qt5
|
{ lib, stdenv, fetchFromGitHub, pkg-config, qt5, cmake
|
||||||
, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
|
, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
|
||||||
, alsa-lib, python3
|
, alsa-lib, python3
|
||||||
, rnnoise
|
, rnnoise
|
||||||
, jackSupport ? false, libjack2
|
|
||||||
, speechdSupport ? false, speechd
|
|
||||||
, pulseSupport ? false, libpulseaudio
|
|
||||||
, iceSupport ? false, zeroc-ice
|
|
||||||
, grpcSupport ? false, grpc, which
|
|
||||||
, nixosTests
|
, nixosTests
|
||||||
|
, poco
|
||||||
|
, flac
|
||||||
|
, libogg
|
||||||
|
, libvorbis
|
||||||
|
, grpcSupport ? false, grpc, which
|
||||||
|
, iceSupport ? true, zeroc-ice
|
||||||
|
, jackSupport ? false, libjack2
|
||||||
|
, pipewireSupport ? true, pipewire
|
||||||
|
, pulseSupport ? true, libpulseaudio
|
||||||
|
, speechdSupport ? false, speechd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
generic = overrides: source: qt5.mkDerivation (source // overrides // {
|
generic = overrides: source: stdenv.mkDerivation (source // overrides // {
|
||||||
pname = overrides.type;
|
pname = overrides.type;
|
||||||
version = source.version;
|
version = source.version;
|
||||||
|
|
||||||
patches = (source.patches or [])
|
nativeBuildInputs = [ cmake pkg-config python3 qt5.wrapQtAppsHook qt5.qttools ]
|
||||||
++ [ ./fix-rnnoise-argument.patch ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config python3 qt5.qmake ]
|
|
||||||
++ (overrides.nativeBuildInputs or [ ]);
|
++ (overrides.nativeBuildInputs or [ ]);
|
||||||
|
|
||||||
buildInputs = [ boost protobuf avahi ]
|
buildInputs = [ avahi boost poco protobuf ]
|
||||||
++ (overrides.buildInputs or [ ]);
|
++ (overrides.buildInputs or [ ]);
|
||||||
|
|
||||||
qmakeFlags = [
|
cmakeFlags = [
|
||||||
"CONFIG+=c++11"
|
"-D g15=OFF"
|
||||||
"CONFIG+=shared"
|
] ++ (overrides.configureFlags or [ ]);
|
||||||
"CONFIG+=no-g15"
|
|
||||||
"CONFIG+=packaged"
|
|
||||||
"CONFIG+=no-update"
|
|
||||||
"CONFIG+=no-embed-qt-translations"
|
|
||||||
"CONFIG+=bundled-celt"
|
|
||||||
"CONFIG+=no-bundled-opus"
|
|
||||||
"CONFIG+=no-bundled-speex"
|
|
||||||
"DEFINES+=PLUGIN_PATH=${placeholder "out"}/lib/mumble"
|
|
||||||
] ++ lib.optional (!speechdSupport) "CONFIG+=no-speechd"
|
|
||||||
++ lib.optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"
|
|
||||||
++ (overrides.configureFlags or [ ]);
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
patchShebangs scripts
|
patchShebangs scripts
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "release" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
${overrides.installPhase}
|
|
||||||
|
|
||||||
# doc stuff
|
|
||||||
mkdir -p $out/share/man/man1
|
|
||||||
install -Dm644 man/mum* $out/share/man/man1/
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.tests.connectivity = nixosTests.mumble;
|
passthru.tests.connectivity = nixosTests.mumble;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -72,66 +49,63 @@ let
|
||||||
type = "mumble";
|
type = "mumble";
|
||||||
|
|
||||||
nativeBuildInputs = [ qt5.qttools ];
|
nativeBuildInputs = [ qt5.qttools ];
|
||||||
buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ]
|
buildInputs = [ flac libogg libopus libsndfile libvorbis qt5.qtsvg rnnoise speex ]
|
||||||
++ lib.optional stdenv.isLinux alsa-lib
|
++ lib.optional (!jackSupport) alsa-lib
|
||||||
++ lib.optional jackSupport libjack2
|
++ lib.optional jackSupport libjack2
|
||||||
++ lib.optional speechdSupport speechd
|
++ lib.optional speechdSupport speechd
|
||||||
++ lib.optional pulseSupport libpulseaudio;
|
++ lib.optional pulseSupport libpulseaudio
|
||||||
|
++ lib.optional pipewireSupport pipewire;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"CONFIG+=no-server"
|
"-D server=OFF"
|
||||||
];
|
"-D bundled-celt=ON"
|
||||||
|
"-D bundled-opus=OFF"
|
||||||
|
"-D bundled-speex=OFF"
|
||||||
|
"-D bundled-rnnoise=OFF"
|
||||||
|
"-D bundle-qt-translations=OFF"
|
||||||
|
"-D update=OFF"
|
||||||
|
"-D overlay-xcompile=OFF"
|
||||||
|
"-D oss=OFF"
|
||||||
|
] ++ lib.optional (!speechdSupport) "-D speechd=OFF"
|
||||||
|
++ lib.optional (!pulseSupport) "-D pulseaudio=OFF"
|
||||||
|
++ lib.optional (!pipewireSupport) "-D pipewire=OFF"
|
||||||
|
++ lib.optional jackSupport "-D alsa=OFF -D jackaudio=ON";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optional speechdSupport "-I${speechd}/include/speech-dispatcher";
|
NIX_CFLAGS_COMPILE = lib.optional speechdSupport "-I${speechd}/include/speech-dispatcher";
|
||||||
|
|
||||||
installPhase = ''
|
postFixup = ''
|
||||||
# bin stuff
|
wrapProgram $out/bin/mumble \
|
||||||
install -Dm755 release/mumble $out/bin/mumble
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath (lib.optional pulseSupport libpulseaudio ++ lib.optional pipewireSupport pipewire)}"
|
||||||
install -Dm755 scripts/mumble-overlay $out/bin/mumble-overlay
|
|
||||||
|
|
||||||
# lib stuff
|
|
||||||
mkdir -p $out/lib/mumble
|
|
||||||
cp -P release/libmumble.so* $out/lib
|
|
||||||
cp -P release/libcelt* $out/lib/mumble
|
|
||||||
cp -P release/plugins/* $out/lib/mumble
|
|
||||||
|
|
||||||
# icons
|
|
||||||
install -Dm644 scripts/mumble.desktop $out/share/applications/mumble.desktop
|
|
||||||
install -Dm644 icons/mumble.svg $out/share/icons/hicolor/scalable/apps/mumble.svg
|
|
||||||
'';
|
'';
|
||||||
} source;
|
} source;
|
||||||
|
|
||||||
server = source: generic {
|
server = source: generic {
|
||||||
type = "murmur";
|
type = "murmur";
|
||||||
|
|
||||||
postPatch = lib.optionalString iceSupport ''
|
|
||||||
grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${zeroc-ice.dev}/share/ice/,g'
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"CONFIG+=no-client"
|
"-D client=OFF"
|
||||||
] ++ lib.optional (!iceSupport) "CONFIG+=no-ice"
|
] ++ lib.optional (!iceSupport) "-D ice=OFF"
|
||||||
++ lib.optional grpcSupport "CONFIG+=grpc";
|
++ lib.optionals iceSupport [
|
||||||
|
"-D Ice_HOME=${lib.getDev zeroc-ice};${lib.getLib zeroc-ice}"
|
||||||
|
"-D CMAKE_PREFIX_PATH=${lib.getDev zeroc-ice};${lib.getLib zeroc-ice}"
|
||||||
|
"-D Ice_SLICE_DIR=${lib.getDev zeroc-ice}/share/ice/slice"
|
||||||
|
]
|
||||||
|
++ lib.optional grpcSupport "-D grpc=ON";
|
||||||
|
|
||||||
buildInputs = [ libcap ]
|
buildInputs = [ libcap ]
|
||||||
++ lib.optional iceSupport zeroc-ice
|
++ lib.optional iceSupport zeroc-ice
|
||||||
++ lib.optionals grpcSupport [ grpc which ];
|
++ lib.optionals grpcSupport [ grpc which ];
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
# bin stuff
|
|
||||||
install -Dm755 release/murmurd $out/bin/murmurd
|
|
||||||
'';
|
|
||||||
} source;
|
} source;
|
||||||
|
|
||||||
source = rec {
|
source = rec {
|
||||||
version = "1.3.4";
|
version = "unstable-1.4.231";
|
||||||
|
|
||||||
# Needs submodules
|
# Needs submodules
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mumble-voip";
|
owner = "mumble-voip";
|
||||||
repo = "mumble";
|
repo = "mumble";
|
||||||
rev = version;
|
rev = "9e0e274d6a9d8a9919267e747d05d0500d150560";
|
||||||
sha256 = "sha256-njovShQpW0JNeeE8VugdmGzDk3fKG8/fcJoBgdyTZug=";
|
sha256 = "0whvb4nlf7gjf2v7wsaq0ir18mshhw5wi8c9q9qz43wnh42nn2qi";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
nixpkgs has a more recent rnnoise than the one used by mumble, and rnnoise
|
|
||||||
changed the argument rnnoise_create[1],
|
|
||||||
|
|
||||||
[1] https://github.com/xiph/rnnoise/commit/231b9c02d14a74cb449a98004cb7a2cf1bdeca2f
|
|
||||||
|
|
||||||
--- old/src/mumble/AudioInput.cpp 2020-02-18 22:55:32.000000000 -0500
|
|
||||||
+++ new/src/mumble/AudioInput.cpp 2020-02-18 22:58:08.000000000 -0500
|
|
||||||
@@ -106,7 +106,7 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_RNNOISE
|
|
||||||
- denoiseState = rnnoise_create();
|
|
||||||
+ denoiseState = rnnoise_create(NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
qWarning("AudioInput: %d bits/s, %d hz, %d sample", iAudioQuality, iSampleRate, iFrameSize);
|
|
|
@ -27552,7 +27552,6 @@ with pkgs;
|
||||||
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 stdenv.isLinux;
|
|
||||||
}).mumble;
|
}).mumble;
|
||||||
|
|
||||||
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
|
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
|
||||||
|
|
Loading…
Reference in a new issue