diff options
-rw-r--r-- | pkgs/servers/asterisk/default.nix | 8 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/servers/asterisk/default.nix b/pkgs/servers/asterisk/default.nix index 3b345e994e3..b8e856b2416 100644 --- a/pkgs/servers/asterisk/default.nix +++ b/pkgs/servers/asterisk/default.nix @@ -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 = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 36577abfc3c..8b1f1df949f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |