Loading pkgs/servers/asterisk/default.nix +72 −25 Original line number Diff line number Diff line { stdenv, lib, fetchurl, fetchsvn, fetchFromGitHub, jansson, libedit, libxml2, libxslt, ncurses, openssl, sqlite, util-linux, dmidecode, libuuid, newt, lua, speex, libopus, opusfile, libogg, srtp, wget, curl, iksemel, pkg-config, autoconf, libtool, automake, fetchpatch, python39, writeScript, withOpus ? true, { stdenv , lib , fetchurl , fetchsvn , fetchFromGitHub , jansson , libedit , libxml2 , libxslt , ncurses , openssl , sqlite , util-linux , dmidecode , libuuid , newt , lua , speex , libopus , opusfile , libogg , srtp , wget , curl , iksemel , pkg-config , autoconf , libtool , automake , fetchpatch , python39 , writeScript , withOpus ? true , ldapSupport ? false , openldap }: let Loading @@ -29,13 +56,30 @@ let ]; common = { version, sha256, externals }: stdenv.mkDerivation { inherit version; pname = "asterisk"; buildInputs = [ jansson libedit libxml2 libxslt ncurses openssl sqlite dmidecode libuuid newt lua speex srtp wget curl iksemel ] ++ lib.optionals withOpus [ libopus opusfile libogg ]; 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 ldapSupport [ openldap ]; nativeBuildInputs = [ util-linux pkg-config autoconf libtool automake ]; patches = [ Loading Loading @@ -135,13 +179,15 @@ let }; # auto-generated by update.py versions = lib.mapAttrs (_: {version, sha256}: common { versions = lib.mapAttrs (_: { version, sha256 }: common { inherit version sha256; externals = { "externals_cache/pjproject-2.12.1.tar.bz2" = pjproject_2_12_1; "addons/mp3" = mp3-202; }; }) (lib.importJSON ./versions.json); }) (lib.importJSON ./versions.json); updateScript_python = python39.withPackages (p: with p; [ packaging beautifulsoup4 requests ]); updateScript = writeScript "asterisk-update" '' Loading @@ -149,7 +195,8 @@ let exec ${updateScript_python}/bin/python ${toString ./update.py} ''; in { in { # Supported releases (as of 2022-04-05). # Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions # Exact version can be found at https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/ Loading pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -24852,6 +24852,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 { }; Loading
pkgs/servers/asterisk/default.nix +72 −25 Original line number Diff line number Diff line { stdenv, lib, fetchurl, fetchsvn, fetchFromGitHub, jansson, libedit, libxml2, libxslt, ncurses, openssl, sqlite, util-linux, dmidecode, libuuid, newt, lua, speex, libopus, opusfile, libogg, srtp, wget, curl, iksemel, pkg-config, autoconf, libtool, automake, fetchpatch, python39, writeScript, withOpus ? true, { stdenv , lib , fetchurl , fetchsvn , fetchFromGitHub , jansson , libedit , libxml2 , libxslt , ncurses , openssl , sqlite , util-linux , dmidecode , libuuid , newt , lua , speex , libopus , opusfile , libogg , srtp , wget , curl , iksemel , pkg-config , autoconf , libtool , automake , fetchpatch , python39 , writeScript , withOpus ? true , ldapSupport ? false , openldap }: let Loading @@ -29,13 +56,30 @@ let ]; common = { version, sha256, externals }: stdenv.mkDerivation { inherit version; pname = "asterisk"; buildInputs = [ jansson libedit libxml2 libxslt ncurses openssl sqlite dmidecode libuuid newt lua speex srtp wget curl iksemel ] ++ lib.optionals withOpus [ libopus opusfile libogg ]; 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 ldapSupport [ openldap ]; nativeBuildInputs = [ util-linux pkg-config autoconf libtool automake ]; patches = [ Loading Loading @@ -135,13 +179,15 @@ let }; # auto-generated by update.py versions = lib.mapAttrs (_: {version, sha256}: common { versions = lib.mapAttrs (_: { version, sha256 }: common { inherit version sha256; externals = { "externals_cache/pjproject-2.12.1.tar.bz2" = pjproject_2_12_1; "addons/mp3" = mp3-202; }; }) (lib.importJSON ./versions.json); }) (lib.importJSON ./versions.json); updateScript_python = python39.withPackages (p: with p; [ packaging beautifulsoup4 requests ]); updateScript = writeScript "asterisk-update" '' Loading @@ -149,7 +195,8 @@ let exec ${updateScript_python}/bin/python ${toString ./update.py} ''; in { in { # Supported releases (as of 2022-04-05). # Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions # Exact version can be found at https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/ Loading
pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -24852,6 +24852,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 { };