@@ -1,6 +1,6 @@
1−{ fetchFromGitHub, stdenv, lib, pkgconfig, autoreconfHook
1+{ fetchFromGitHub, fetchpatch, stdenv, lib, pkgconfig, autoreconfHook
22, ncurses, gnutls, readline
3−, openssl, perl, sqlite, libjpeg, speex, pcre
3+, openssl, perl, sqlite, libjpeg, speex, pcre, libuuid
44, ldns, libedit, yasm, which, libsndfile, libtiff
55
66, callPackage
@@ -88,13 +88,21 @@ in
8888
8989stdenv.mkDerivation rec {
9090 pname = "freeswitch";
91− version = "1.10.3";
91+ version = "1.10.5";
9292 src = fetchFromGitHub {
9393 owner = "signalwire";
9494 repo = pname;
9595 rev = "v${version}";
96− sha256 = "0rp4sxqxd2wsb5iyv0mh11l16zxvh7rbgfg0vcgns823gvh8lqai";
96+ sha256 = "18dhyb19k28dcm1i8mhqvvgm2phsrmrwyjmfn79glk8pdlalvcha";
9797 };
98+
99+ patches = [
100+ # https://github.com/signalwire/freeswitch/pull/812 fix mod_spandsp, mod_gsmopen build, drop when updating from 1.10.5
101+ (fetchpatch {
102+ url = "https://github.com/signalwire/freeswitch/commit/51fba83ed3ed2d9753d8e6b13e13001aca50b493.patch";
103+ sha256 = "0h2bmifsyyasxjka3pczbmqym1chvz91fmb589njrdbwpkjyvqh3";
104+ })
105+ ];
98106 postPatch = ''
99107 patchShebangs libs/libvpx/build/make/rtcd.pl
100108 substituteInPlace libs/libvpx/build/make/configure.sh \
@@ -114,6 +122,7 @@ stdenv.mkDerivation rec {
114122 openssl ncurses gnutls readline perl libjpeg
115123 sqlite pcre speex ldns libedit yasm which
116124 libsndfile libtiff
125+ libuuid
117126 ]
118127 ++ lib.unique (lib.concatMap (mod: mod.inputs) enabledModules)
119128 ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ];