summary refs log tree commit diff
diff options
context:
space:
mode:
authorYorick van Pelt <yorick@yorickvanpelt.nl>2023-04-19 12:19:58 +0200
committerYorick van Pelt <yorick@yorickvanpelt.nl>2023-04-23 15:56:57 +0200
commit0a8004f496612a3ec179695ff2304855124bddb9 (patch)
tree782628c7fd2e1b785cb31a62826c3bfa2e8327ca
parentf51c667a290311d9abdbb6be1e775ba9917971ec (diff)
downloadnixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar.gz
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar.bz2
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar.lz
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar.xz
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.tar.zst
nixpkgs-0a8004f496612a3ec179695ff2304855124bddb9.zip
asterisk: drop 16 and 19
These will go EOL within the 23.05 support window.
-rw-r--r--nixos/doc/manual/release-notes/rl-2305.section.md2
-rw-r--r--pkgs/servers/asterisk/default.nix5
-rw-r--r--pkgs/top-level/aliases.nix2
-rw-r--r--pkgs/top-level/all-packages.nix2
4 files changed, 7 insertions, 4 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md
index 601109ccee5..a89c46152ca 100644
--- a/nixos/doc/manual/release-notes/rl-2305.section.md
+++ b/nixos/doc/manual/release-notes/rl-2305.section.md
@@ -229,6 +229,8 @@ In addition to numerous new and upgraded packages, this release has the followin
 
 - To enable the HTTP3 (QUIC) protocol for a nginx virtual host, set the `quic` attribute on it to true, e.g. `services.nginx.virtualHosts.<name>.quic = true;`.
 
+- The default Asterisk package was changed to v20 from v19. Asterisk versions 16 and 19 have been dropped due to being EOL. You may need to update /var/lib/asterisk to match the template files in `${asterisk-20}/var/lib/asterisk`.
+
 - conntrack helper autodetection has been removed from kernels 6.0 and up upstream, and an assertion was added to ensure things don't silently stop working. Migrate your configuration to assign helpers explicitly or use an older LTS kernel branch as a temporary workaround.
 
 - The `services.pipewire.config` options have been removed, as they have basically never worked correctly. All behavior defined by the default configuration can be overridden with drop-in files as necessary - see [below](#sec-release-23.05-migration-pipewire) for details.
diff --git a/pkgs/servers/asterisk/default.nix b/pkgs/servers/asterisk/default.nix
index c49e5696a67..bf8e2ed740f 100644
--- a/pkgs/servers/asterisk/default.nix
+++ b/pkgs/servers/asterisk/default.nix
@@ -199,8 +199,7 @@ let
     exec ${updateScript_python}/bin/python ${toString ./update.py}
   '';
 
-in
-{
+in {
   # Supported releases (as of 2023-04-19).
   # v16 and v19 have been dropped because they go EOL before the NixOS 23.11 release.
   # Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
@@ -215,7 +214,7 @@ in
   asterisk-lts = versions.asterisk_18;
   asterisk-stable = versions.asterisk_20;
   asterisk = versions.asterisk_20.overrideAttrs (o: {
-    passthru = (o.passthru or { }) // { inherit updateScript; };
+    passthru = (o.passthru or {}) // { inherit updateScript; };
   });
 
 } // versions
diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix
index 27010136f5e..95004ba483a 100644
--- a/pkgs/top-level/aliases.nix
+++ b/pkgs/top-level/aliases.nix
@@ -98,7 +98,9 @@ mapAliases ({
   asls = throw "asls has been removed: abandoned by upstream"; # Added 2023-03-16
   asterisk_13 = throw "asterisk_13: Asterisk 13 is end of life and has been removed"; # Added 2022-04-06
   asterisk_15 = throw "asterisk_15: Asterisk 15 is end of life and has been removed"; # Added 2020-10-07
+  asterisk_16 = throw "asterisk_16: Asterisk 16 is end of life and has been removed"; # Added 2023-04-19
   asterisk_17 = throw "asterisk_17: Asterisk 17 is end of life and has been removed"; # Added 2022-04-06
+  asterisk_19 = throw "asterisk_19: Asterisk 19 is end of life and has been removed"; # Added 2023-04-19
   at_spi2_atk = throw "'at_spi2_atk' has been renamed to/replaced by 'at-spi2-atk'"; # Converted to throw 2022-02-22
   at_spi2_core = throw "'at_spi2_core' has been renamed to/replaced by 'at-spi2-core'"; # Converted to throw 2022-02-22
   aucdtect = throw "aucdtect: Upstream no longer provides download urls"; # Added 2020-12-26
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e9355cb9c78..e225023050a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24864,7 +24864,7 @@ with pkgs;
 
   inherit (callPackages ../servers/asterisk { })
     asterisk asterisk-stable asterisk-lts
-    asterisk_16 asterisk_18 asterisk_19 asterisk_20;
+    asterisk_18 asterisk_20;
 
   asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };