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