Skip to content

Commit

Permalink
elixir: update default to 1.18 (#368356)
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada authored Dec 26, 2024
2 parents a4ae334 + e187a6e commit bbc2fd2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

- The default Erlang OTP version has been updated to 27.

- The default Elixir version has been updated to 1.18.

- `nixos-rebuild-ng`, a full rewrite of `nixos-rebuild` in Python, is available for testing. You can enable it by setting [system.rebuild.enableNg](options.html#opt-system.rebuild.enableNg) in your configuration (this will replace the old `nixos-rebuild`), or by adding `nixos-rebuild-ng` to your `environment.systemPackages` (in this case, it will live side-by-side with `nixos-rebuild` as `nixos-rebuild-ng`). It is expected that the next major version of NixOS (25.11) will enable `system.rebuild.enableNg` by default.
- A `nixos-rebuild build-image` sub-command has been added.

Expand Down
File renamed without changes.
12 changes: 2 additions & 10 deletions pkgs/by-name/ne/next-ls/package.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
lib,

beam_minimal,
beamPackages,
fetchFromGitHub,
}:

let
beamPackages = beam_minimal.packages.erlang_27;
elixir = beamPackages.elixir_1_17;
in

beamPackages.mixRelease rec {
pname = "next-ls";
version = "0.23.2";
Expand All @@ -22,14 +17,11 @@ beamPackages.mixRelease rec {
};

mixFodDeps = beamPackages.fetchMixDeps {
inherit src version elixir;
inherit src version;
pname = "next-ls-deps";
hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q=";
};

inherit elixir;
inherit (beamPackages) erlang;

removeCookie = false;

# replace installPhase to change release target
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/beam-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let
elvis-erlang = callPackage ./elvis-erlang { };

# BEAM-based languages.
elixir = elixir_1_17;
elixir = elixir_1_18;

elixir_1_18 = lib'.callElixir ../interpreters/elixir/1.18.nix {
inherit erlang;
Expand Down Expand Up @@ -73,7 +73,10 @@ let
# Remove old versions of elixir, when the supports fades out:
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html

ex_doc = callPackage ./ex_doc { inherit elixir fetchMixDeps mixRelease; };
ex_doc = callPackage ./ex_doc {
inherit fetchMixDeps mixRelease;
elixir = elixir_1_17;
};

elixir-ls = callPackage ./elixir-ls { inherit elixir fetchMixDeps mixRelease; };

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ with pkgs;

kavita = callPackage ../servers/web-apps/kavita { };

livebook = callPackage ../servers/web-apps/livebook {
livebook = callPackage ../by-name/li/livebook/package.nix {
elixir = elixir_1_17;
beamPackages = beamPackages.extend (self: super: { elixir = elixir_1_17; });
};
Expand Down

0 comments on commit bbc2fd2

Please sign in to comment.