Commit 3266f88f authored by Janik H's avatar Janik H
Browse files

asterisk: add sub-package with ldap support

parent 8f1e87b4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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 = [
+2 −0
Original line number Diff line number Diff line
@@ -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 { };