1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/servers/sip/freeswitch/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

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 }:
stdenv.mkDerivation rec {
name = "freeswitch-1.6.20";
src = fetchurl {
url = "https://files.freeswitch.org/freeswitch-releases/${name}.tar.bz2";
sha256 = "0hqz68abs5x5vzf1mndcvdi35nrhmnklzdrnrk8dyvzvz67hp2ah";
};
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
'';
nativeBuildInputs = [ pkgconfig ];
2016-08-25 00:23:03 +01:00
buildInputs = [
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
];
2016-03-29 11:58:19 +01:00
NIX_CFLAGS_COMPILE = "-Wno-error";
hardeningDisable = [ "format" ];
2016-02-11 01:38:14 +00:00
meta = {
description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch";
homepage = https://freeswitch.org/;
license = stdenv.lib.licenses.mpl11;
maintainers = with stdenv.lib.maintainers; [ ];
platforms = with stdenv.lib.platforms; linux;
};
}