freeswitch: expose compilation option to enable postgres support (#54593)
This commit is contained in:
parent
e253fd1a95
commit
6195a47d25
@ -1,7 +1,10 @@
|
|||||||
{ fetchurl, stdenv, ncurses, curl, pkgconfig, gnutls, readline
|
{ fetchurl, stdenv, lib, ncurses, curl, pkgconfig, gnutls, readline
|
||||||
, openssl, perl, sqlite, libjpeg, speex, pcre
|
, openssl, perl, sqlite, libjpeg, speex, pcre
|
||||||
, ldns, libedit, yasm, which, lua, libopus, libsndfile
|
, ldns, libedit, yasm, which, lua, libopus, libsndfile
|
||||||
|
|
||||||
|
, postgresql
|
||||||
|
, enablePostgres ? true
|
||||||
|
|
||||||
, SystemConfiguration
|
, SystemConfiguration
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -23,12 +26,16 @@ stdenv.mkDerivation rec {
|
|||||||
openssl ncurses curl gnutls readline perl libjpeg
|
openssl ncurses curl gnutls readline perl libjpeg
|
||||||
sqlite pcre speex ldns libedit yasm which lua libopus
|
sqlite pcre speex ldns libedit yasm which lua libopus
|
||||||
libsndfile
|
libsndfile
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
]
|
||||||
|
++ lib.optionals enablePostgres [ postgresql ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
configureFlags = lib.optionals enablePostgres [ "--enable-core-pgsql-support" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch";
|
description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch";
|
||||||
homepage = https://freeswitch.org/;
|
homepage = https://freeswitch.org/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user