From a44fef7dee723745ba770062463991c8e390500e Mon Sep 17 00:00:00 2001 From: Marko Mindek Date: Mon, 29 Jan 2024 11:24:39 +0100 Subject: [PATCH] erlang-ls: 0.48.0 -> 0.51.0 --- nixos/doc/manual/release-notes/rl-2405.section.md | 4 +++- pkgs/development/beam-modules/erlang-ls/default.nix | 10 +++------- pkgs/development/beam-modules/erlang-ls/rebar-deps.nix | 8 ++++---- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index b736d71288c0..57083340fbc9 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -350,12 +350,14 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m This means that configuration now has to be done using [environment variables](https://hexdocs.pm/livebook/readme.html#environment-variables) instead of command line arguments. This has the further implication that the `livebook` service configuration has changed: - - The `erlang_node_short_name`, `erlang_node_name`, `port` and `options` configuration parameters are gone, and have been replaced with an `environment` parameter. +- The `erlang_node_short_name`, `erlang_node_name`, `port` and `options` configuration parameters are gone, and have been replaced with an `environment` parameter. Use the appropriate [environment variables](https://hexdocs.pm/livebook/readme.html#environment-variables) inside `environment` to configure the service instead. - The `crystal` package has been updated to 1.11.x, which has some breaking changes. Refer to crystal's changelog for more information. ([v1.10](https://github.com/crystal-lang/crystal/blob/master/CHANGELOG.md#1100-2023-10-09), [v1.11](https://github.com/crystal-lang/crystal/blob/master/CHANGELOG.md#1110-2024-01-08)) +- The `erlang-ls` package no longer ships the `els_dap` binary as of v0.51.0. + ## Other Notable Changes {#sec-release-24.05-notable-changes} diff --git a/pkgs/development/beam-modules/erlang-ls/default.nix b/pkgs/development/beam-modules/erlang-ls/default.nix index 04d6fc36176f..1c1d9f933c37 100644 --- a/pkgs/development/beam-modules/erlang-ls/default.nix +++ b/pkgs/development/beam-modules/erlang-ls/default.nix @@ -1,7 +1,7 @@ { fetchFromGitHub, fetchgit, fetchHex, rebar3Relx, buildRebar3, rebar3-proper , stdenv, writeScript, lib, erlang }: let - version = "0.48.0"; + version = "0.51.0"; owner = "erlang-ls"; repo = "erlang_ls"; deps = import ./rebar-deps.nix { @@ -24,7 +24,7 @@ rebar3Relx { inherit version; src = fetchFromGitHub { inherit owner repo; - sha256 = "sha256-QwsN/P2FBuhIS/vRlrdvokQS6G77kkZ2Rg5rwNc36Jg="; + hash = "sha256-2gSDfYGm7XVeEn0xEwuvk8y1z8P2/q86hmNCkK6w2C0="; rev = version; }; releaseType = "escript"; @@ -46,11 +46,7 @@ rebar3Relx { ''; # tests seem to be a bit flaky on darwin, skip them for now doCheck = !stdenv.isDarwin; - installPhase = '' - mkdir -p $out/bin - cp _build/default/bin/erlang_ls $out/bin/ - cp _build/dap/bin/els_dap $out/bin/ - ''; + installFlags = [ "PREFIX=$(out)" ]; meta = with lib; { homepage = "https://github.com/erlang-ls/erlang_ls"; description = "The Erlang Language Server"; diff --git a/pkgs/development/beam-modules/erlang-ls/rebar-deps.nix b/pkgs/development/beam-modules/erlang-ls/rebar-deps.nix index afdf4767843b..2ab6b08338f4 100644 --- a/pkgs/development/beam-modules/erlang-ls/rebar-deps.nix +++ b/pkgs/development/beam-modules/erlang-ls/rebar-deps.nix @@ -138,12 +138,12 @@ let }; erlfmt = builder { name = "erlfmt"; - version = "git"; + version = "1.3.0"; src = fetchFromGitHub { - owner = "gomoripeti"; + owner = "WhatsApp"; repo = "erlfmt"; - rev = "d4422d1fd79a73ef534c2bcbe5b5da4da5338833"; - sha256 = "07jp4g6a41w7318lh8ndsvgivkj0ahz3spnrsnx4cqkdb97yjaid"; + sha256 = "sha256-fVjEVmCnoofnfcxwBk0HI4adO0M6QOshP3uZrecZ9vM="; + rev = "v1.3.0"; }; beamDeps = [ ]; };