erlang-ls: 0.52.0 -> 1.1.0

This commit is contained in:
Erlend Hamberg 2024-09-18 17:24:05 +02:00
parent 169f563953
commit 040826a94f
No known key found for this signature in database
GPG Key ID: 839A1C97961D54B3
2 changed files with 36 additions and 17 deletions

View File

@ -1,7 +1,7 @@
{ fetchFromGitHub, fetchgit, fetchHex, rebar3Relx, buildRebar3, rebar3-proper
, stdenv, writeScript, lib }:
let
version = "0.52.0";
version = "1.1.0";
owner = "erlang-ls";
repo = "erlang_ls";
deps = import ./rebar-deps.nix {
@ -16,6 +16,15 @@ let
substituteInPlace rebar.config --replace ", warnings_as_errors" ""
'';
});
json_polyfill = super.json_polyfill.overrideAttrs (_: {
# When compiling with erlang >= 27, the json_polyfill rebar script will
# delete the json.beam file as it's not needed. However, we need to
# adjust this path as the nix build will put the beam file under `ebin`
# instead of `$REBAR_DEPS_DIR/json_polyfill/ebin`.
postPatch = ''
substituteInPlace rebar.config.script --replace "{erlc_compile, \"rm \\\"\$REBAR_DEPS_DIR/json_polyfill/ebin/json.beam\\\"\"}" "{erlc_compile, \"rm \\\"ebin/json.beam\\\"\"}"
'';
});
});
};
in
@ -24,7 +33,7 @@ rebar3Relx {
inherit version;
src = fetchFromGitHub {
inherit owner repo;
hash = "sha256-tV7M8y0R+BN5ATxM03K0/gtHgITI9KxtvA7o0ft8RuE=";
hash = "sha256-MSDBU+blsAdeixaHMMXmeMJ+9Yrzn3HekE8KbIc/Guo=";
rev = version;
};
releaseType = "escript";

View File

@ -26,11 +26,11 @@ let
};
quickrand = builder {
name = "quickrand";
version = "2.0.1";
version = "2.0.7";
src = fetchHex {
pkg = "quickrand";
version = "2.0.1";
sha256 = "sha256-FNtn1K72uIFYEOyfPM714yS3O1bK42h/mddSuFvdTJY=";
version = "2.0.7";
sha256 = "sha256-uKy/iaIkvCF8MHDKi+vG6yNtvn+XZ5k7J0CE6gRNNfA=";
};
beamDeps = [ ];
};
@ -46,11 +46,11 @@ let
};
katana_code = builder {
name = "katana_code";
version = "0.2.1";
version = "2.1.1";
src = fetchHex {
pkg = "katana_code";
version = "0.2.1";
sha256 = "sha256-hEitP1bZgU+YoovmUPcZG91QZXXjRcwW1YZmCxD26ZI=";
version = "2.1.1";
sha256 = "sha256-BoDzNSW5qILm9NMCJRixXEb2SL17Db6GkAmA/hwpFAQ=";
};
beamDeps = [ ];
};
@ -115,13 +115,23 @@ let
};
beamDeps = [ katana_code ];
};
json_polyfill = builder {
name = "json_polyfill";
version = "0.1.4";
src = fetchHex {
pkg = "json_polyfill";
version = "0.1.4";
sha256 = "sha256-SMOX7iVH+kWe3gGjDsDoVxer7TAQhnpj7qrF8gMnQwM=";
};
beamDeps = [ ];
};
jsx = builder {
name = "jsx";
version = "3.0.0";
version = "2.10.0";
src = fetchHex {
pkg = "jsx";
version = "3.0.0";
sha256 = "sha256-N77KBDX1yoovRfdqRiEedkGPvvgMNvA2HCSfx1BZ3G0=";
version = "2.10.0";
sha256 = "sha256-moPjcEgHKYAWlo21Bvn60PAn3jdUbrg4s64QZMOgrWI=";
};
beamDeps = [ ];
};
@ -138,11 +148,11 @@ let
};
erlfmt = builder {
name = "erlfmt";
version = "1.3.0";
version = "1.5.0";
src = fetchHex {
pkg = "erlfmt";
version = "1.3.0";
sha256 = "sha256-KoSqHrovT8190x1cV+neK8JwXdoY2kVT8n33EUz6oFI=";
version = "1.5.0";
sha256 = "sha256-OTOkDPvnkK2U5bZQs2iB3nBFYxkmPBR5tVbpr9vYDHU=";
};
beamDeps = [ ];
};
@ -158,11 +168,11 @@ let
};
elvis_core = builder {
name = "elvis_core";
version = "1.3.1";
version = "3.2.5";
src = fetchHex {
pkg = "elvis_core";
version = "1.3.1";
sha256 = "sha256-eoiQv4GFoyUs1OvYJv5fita5MCTt+IV26yeunl3BnWk=";
version = "3.2.5";
sha256 = "sha256-NNkhjwuAclEZA79sy/WesXZd7Pxz/MaDO6XIlZ2384M=";
};
beamDeps = [ katana_code zipper ];
};