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