2016-08-25 01:23:03 +02:00
|
|
|
{ fetchurl, stdenv, ncurses, curl, pkgconfig, gnutls, readline
|
2017-02-14 09:43:33 +01:00
|
|
|
, openssl, perl, sqlite, libjpeg, speex, pcre
|
2018-12-10 23:49:26 +01:00
|
|
|
, ldns, libedit, yasm, which, lua, libopus, libsndfile
|
|
|
|
|
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
2011-01-21 23:12:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-31 18:28:17 +02:00
|
|
|
name = "freeswitch-1.6.20";
|
2011-01-21 23:12:34 +01:00
|
|
|
|
2012-09-26 22:34:55 +02:00
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://files.freeswitch.org/freeswitch-releases/${name}.tar.bz2";
|
2018-03-31 18:28:17 +02:00
|
|
|
sha256 = "0hqz68abs5x5vzf1mndcvdi35nrhmnklzdrnrk8dyvzvz67hp2ah";
|
2011-01-21 23:12:34 +01:00
|
|
|
};
|
2017-09-16 12:08:08 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs libs/libvpx/build/make/rtcd.pl
|
|
|
|
substituteInPlace libs/libvpx/build/make/configure.sh \
|
|
|
|
--replace AS=\''${AS} AS=yasm
|
|
|
|
'';
|
2011-01-21 23:12:34 +01:00
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-08-25 01:23:03 +02:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
openssl ncurses curl gnutls readline perl libjpeg
|
2017-02-14 09:43:33 +01:00
|
|
|
sqlite pcre speex ldns libedit yasm which lua libopus
|
2016-08-25 01:23:03 +02:00
|
|
|
libsndfile
|
2018-12-10 23:49:26 +01:00
|
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
2011-01-21 23:12:34 +01:00
|
|
|
|
2016-03-29 12:58:19 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2014-11-28 18:40:19 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 02:38:14 +01:00
|
|
|
|
2011-01-21 23:12:34 +01:00
|
|
|
meta = {
|
|
|
|
description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch";
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://freeswitch.org/;
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.mpl11;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2018-12-10 23:49:26 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2011-01-21 23:12:34 +01:00
|
|
|
};
|
|
|
|
}
|