diff options
author | pmahoney <pat@polycrystal.org> | 2019-02-01 16:39:15 -0600 |
---|---|---|
committer | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2019-02-02 00:39:15 +0200 |
commit | 6195a47d2594913baab5322c2a54ea606d2fc864 (patch) | |
tree | 828e8dad76055cdc5e122e747abd9d069724ea0c /pkgs/servers/sip | |
parent | e253fd1a95a41898f8f112be9d46f6e3af233cae (diff) | |
download | nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar.gz nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar.bz2 nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar.lz nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar.xz nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.tar.zst nixpkgs-6195a47d2594913baab5322c2a54ea606d2fc864.zip |
freeswitch: expose compilation option to enable postgres support (#54593)
Diffstat (limited to 'pkgs/servers/sip')
-rw-r--r-- | pkgs/servers/sip/freeswitch/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/servers/sip/freeswitch/default.nix b/pkgs/servers/sip/freeswitch/default.nix index ab4147230a9..33097888ff3 100644 --- a/pkgs/servers/sip/freeswitch/default.nix +++ b/pkgs/servers/sip/freeswitch/default.nix @@ -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 , ldns, libedit, yasm, which, lua, libopus, libsndfile +, postgresql +, enablePostgres ? true + , SystemConfiguration }: @@ -23,12 +26,16 @@ stdenv.mkDerivation rec { openssl ncurses curl gnutls readline perl libjpeg sqlite pcre speex ldns libedit yasm which lua libopus libsndfile - ] ++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ]; + ] + ++ lib.optionals enablePostgres [ postgresql ] + ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ]; NIX_CFLAGS_COMPILE = "-Wno-error"; hardeningDisable = [ "format" ]; + configureFlags = lib.optionals enablePostgres [ "--enable-core-pgsql-support" ]; + meta = { description = "Cross-Platform Scalable FREE Multi-Protocol Soft Switch"; homepage = https://freeswitch.org/; |