asterisk: add sub-package with ldap support
This commit is contained in:
parent
8f1e87b4f4
commit
3266f88f3d
@ -6,6 +6,7 @@
|
|||||||
autoconf, libtool, automake, fetchpatch,
|
autoconf, libtool, automake, fetchpatch,
|
||||||
python39, writeScript,
|
python39, writeScript,
|
||||||
withOpus ? true,
|
withOpus ? true,
|
||||||
|
ldapSupport ? false, openldap
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -29,13 +30,16 @@ let
|
|||||||
];
|
];
|
||||||
common = {version, sha256, externals}: stdenv.mkDerivation {
|
common = {version, sha256, externals}: stdenv.mkDerivation {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = "asterisk";
|
pname = "asterisk"
|
||||||
|
+ lib.optionalString ldapSupport "-ldap";
|
||||||
|
|
||||||
|
|
||||||
buildInputs = [ jansson libedit libxml2 libxslt ncurses openssl sqlite
|
buildInputs = [ jansson libedit libxml2 libxslt ncurses openssl sqlite
|
||||||
dmidecode libuuid newt
|
dmidecode libuuid newt
|
||||||
lua speex
|
lua speex
|
||||||
srtp wget curl iksemel ]
|
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 ];
|
nativeBuildInputs = [ util-linux pkg-config autoconf libtool automake ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -24550,6 +24550,8 @@ with pkgs;
|
|||||||
|
|
||||||
asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };
|
asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };
|
||||||
|
|
||||||
|
asterisk-ldap = lowPrio (asterisk.override { ldapSupport = true; });
|
||||||
|
|
||||||
sabnzbd = callPackage ../servers/sabnzbd { };
|
sabnzbd = callPackage ../servers/sabnzbd { };
|
||||||
|
|
||||||
baserow = callPackage ../servers/baserow { };
|
baserow = callPackage ../servers/baserow { };
|
||||||
|
Loading…
Reference in New Issue
Block a user