freeswitch: fix gsmopen build and enable by default for linux
This commit is contained in:
parent
8cce0e0937
commit
96f4563f1e
2 changed files with 20 additions and 21 deletions
|
@ -1,5 +1,19 @@
|
|||
{ fetchurl, stdenv, lib, ncurses, curl, pkgconfig, gnutls, readline
|
||||
, openssl, perl, sqlite, libjpeg, speex, pcre
|
||||
, ldns, libedit, yasm, which, lua, libopus, libsndfile, libtiff
|
||||
, libctb, gsmlib
|
||||
|
||||
, modules ? null
|
||||
, postgresql
|
||||
, enablePostgres ? true
|
||||
|
||||
, SystemConfiguration
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
availableModules = import ./modules.nix { inherit curl lua libopus libctb gsmlib; };
|
||||
|
||||
# the default list from v1.8.7, except with applications/mod_signalwire also disabled
|
||||
defaultModules = mods: with mods; [
|
||||
applications.commands
|
||||
|
@ -57,26 +71,9 @@ defaultModules = mods: with mods; [
|
|||
xml_int.cdr
|
||||
xml_int.rpc
|
||||
xml_int.scgi
|
||||
];
|
||||
] ++ lib.optionals stdenv.isLinux [ endpoints.gsmopen ];
|
||||
|
||||
in
|
||||
|
||||
{ fetchurl, stdenv, lib, ncurses, curl, pkgconfig, gnutls, readline
|
||||
, openssl, perl, sqlite, libjpeg, speex, pcre
|
||||
, ldns, libedit, yasm, which, lua, libopus, libsndfile, libtiff
|
||||
|
||||
, modules ? defaultModules
|
||||
, postgresql
|
||||
, enablePostgres ? true
|
||||
|
||||
, SystemConfiguration
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
availableModules = import ./modules.nix { inherit curl lua libopus; };
|
||||
|
||||
enabledModules = modules availableModules;
|
||||
enabledModules = (if modules != null then modules else defaultModules) availableModules;
|
||||
|
||||
modulesConf = let
|
||||
lst = builtins.map (mod: mod.path) enabledModules;
|
||||
|
@ -127,7 +124,7 @@ stdenv.mkDerivation rec {
|
|||
description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch";
|
||||
homepage = https://freeswitch.org/;
|
||||
license = stdenv.lib.licenses.mpl11;
|
||||
maintainers = with stdenv.lib.maintainers; [ ];
|
||||
maintainers = with stdenv.lib.maintainers; [ misuzu ];
|
||||
platforms = with stdenv.lib.platforms; unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{ libopus
|
||||
, libctb
|
||||
, gsmlib
|
||||
, lua
|
||||
, curl
|
||||
}:
|
||||
|
@ -114,7 +116,7 @@ in
|
|||
endpoints = {
|
||||
alsa = mk "endpoints/mod_alsa" [];
|
||||
dingaling = mk "endpoints/mod_dingaling" [];
|
||||
gsmopen = mk "endpoints/mod_gsmopen" [];
|
||||
gsmopen = mk "endpoints/mod_gsmopen" [ gsmlib libctb ];
|
||||
h323 = mk "endpoints/mod_h323" [];
|
||||
khomp = mk "endpoints/mod_khomp" [];
|
||||
loopback = mk "endpoints/mod_loopback" [];
|
||||
|
|
Loading…
Reference in a new issue