44 fetchFromGitHub ,
55 fetchpatch ,
66 pkg-config ,
7- qt5 ,
7+ qt6 ,
88 cmake ,
99 ninja ,
1010 avahi ,
3838 nlohmann_json ,
3939 xar ,
4040 makeBinaryWrapper ,
41+ postgresql ,
42+ serverMysqlSupport ? false ,
43+ serverPostgresqlSupport ? true ,
44+ serverSqliteSupport ? true ,
4145} :
4246
4347let
5559 ninja
5660 pkg-config
5761 python3
58- qt5 . wrapQtAppsHook
59- qt5 . qttools
62+ qt6 . wrapQtAppsHook
63+ qt6 . qttools
6064 makeBinaryWrapper
6165 ]
6266 ++ ( overrides . nativeBuildInputs or [ ] ) ;
7882 "-D CMAKE_UNITY_BUILD=ON" # Upstream uses this in their build pipeline to speed up builds
7983 "-D bundled-gsl=OFF"
8084 "-D bundled-json=OFF"
85+ "-D use-timestamps=OFF"
8186 ]
8287 ++ ( overrides . cmakeFlags or [ ] ) ;
8388
107112
108113 platforms = lib . platforms . darwin ;
109114 nativeBuildInputs = [
110- qt5 . qttools
115+ qt6 . qttools
111116 ] ;
112117
113118 buildInputs = [
117122 libsndfile
118123 libvorbis
119124 speexdsp
120- qt5 . qtsvg
125+ qt6 . qtsvg
121126 rnnoise
122127 ]
123128 ++ lib . optional ( ! jackSupport && alsaSupport ) alsa-lib
132137 cmakeFlags = [
133138 "-D server=OFF"
134139 "-D bundled-speex=OFF"
140+ "-D bundled-rnnoise=OFF"
135141 "-D bundle-qt-translations=OFF"
136142 "-D update=OFF"
137143 "-D overlay-xcompile=OFF"
151157 env . NIX_CFLAGS_COMPILE = lib . optionalString speechdSupport "-I${ speechd-minimal } /include/speech-dispatcher" ;
152158
153159 patches = [
154- ./disable-overlay-build.patch
155- ./fix-plugin-copy.patch
160+ # ./disable-overlay-build.patch
161+ # ./fix-plugin-copy.patch
156162 ] ;
157163
158164 postInstall = lib . optionalString stdenv . hostPlatform . isDarwin ''
@@ -193,13 +199,20 @@ let
193199 cmakeFlags = [
194200 "-D client=OFF"
195201 ( lib . cmakeBool "ice" iceSupport )
202+ ( lib . cmakeBool "enable-mysql" serverMysqlSupport )
203+ ( lib . cmakeBool "enable-postgresql" serverPostgresqlSupport )
204+ ( lib . cmakeBool "enable-sqlite" serverSqliteSupport )
196205 ]
197206 ++ lib . optionals iceSupport [
198207 "-D Ice_HOME=${ lib . getDev zeroc-ice } ;${ lib . getLib zeroc-ice } "
199208 "-D Ice_SLICE_DIR=${ lib . getDev zeroc-ice } /share/ice/slice"
200209 ] ;
201210
202- buildInputs = [ libcap ] ++ lib . optional iceSupport zeroc-ice ;
211+ buildInputs = [
212+ libcap
213+ ]
214+ ++ lib . optional iceSupport zeroc-ice
215+ ++ lib . optional serverPostgresqlSupport postgresql ;
203216 } source ;
204217
205218 overlay =
@@ -216,14 +229,14 @@ let
216229 } source ;
217230
218231 source = rec {
219- version = "1.5.857 " ;
232+ version = "1.6.870 " ;
220233
221234 # Needs submodules
222235 src = fetchFromGitHub {
223236 owner = "mumble-voip" ;
224237 repo = "mumble" ;
225238 tag = "v${ version } " ;
226- hash = "sha256-4ySak2nzT8p48waMgBc9kLrvFB8716e7p0G4trzuh1k =" ;
239+ hash = "sha256-FpZbFY/RvQOEDQAXkm1f5Oy00UUG11Az7LJnWfoinOM =" ;
227240 fetchSubmodules = true ;
228241 } ;
229242 } ;
0 commit comments