asterisk: add sub-package with ldap support

This commit is contained in:
Janik H 2023-03-12 21:41:40 +01:00
parent 8f1e87b4f4
commit 3266f88f3d
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,7 @@
autoconf, libtool, automake, fetchpatch,
python39, writeScript,
withOpus ? true,
ldapSupport ? false, openldap
}:
let
@ -29,13 +30,16 @@ let
];
common = {version, sha256, externals}: stdenv.mkDerivation {
inherit version;
pname = "asterisk";
pname = "asterisk"
+ lib.optionalString ldapSupport "-ldap";
buildInputs = [ jansson libedit libxml2 libxslt ncurses openssl sqlite
dmidecode libuuid newt
lua speex
srtp wget curl iksemel ]
++ lib.optionals withOpus [ libopus opusfile libogg ];
++ lib.optionals withOpus [ libopus opusfile libogg ]
++ lib.optionals ldapSupport [ openldap ];
nativeBuildInputs = [ util-linux pkg-config autoconf libtool automake ];
patches = [

View File

@ -24550,6 +24550,8 @@ with pkgs;
asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };
asterisk-ldap = lowPrio (asterisk.override { ldapSupport = true; });
sabnzbd = callPackage ../servers/sabnzbd { };
baserow = callPackage ../servers/baserow { };