erlang-ls 0 -> 1 attrpath: erlang-ls Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] these 2 derivations will be built: /nix/store/6f8wrcrqck6rdwlnkhram8khkk93zlx2-update.sh.drv /nix/store/psa5zcv6k6g9p6g19hfn78p3a8r1qr3j-packages.json.drv building '/nix/store/6f8wrcrqck6rdwlnkhram8khkk93zlx2-update.sh.drv'... building '/nix/store/psa5zcv6k6g9p6g19hfn78p3a8r1qr3j-packages.json.drv'... Going to be running update for following packages: - erlang-ls-0.46.1 Press Enter key to continue... Running update for: - erlang-ls-0.46.1: UPDATING ... - erlang-ls-0.46.1: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/beam-modules/erlang-ls/default.nix b/pkgs/development/beam-modules/erlang-ls/default.nix index 34f3edd9433..fdd4548c663 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.46.1"; + version = "0.46.2"; 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-UiXnamLl6Brp+XOsoldeahNxJ9OKEUgSs1WLRmB9yL8="; + sha256 = "sha256-J0Qa8s8v/KT4/Jaj9JYsfvzviMUx8FnX0nMoeH8bkB8="; rev = version; }; releaseType = "escript"; No auto update branch exists Old version 0.46.1" not present in master derivation file with contents: { fetchFromGitHub, fetchgit, fetchHex, rebar3Relx, buildRebar3, rebar3-proper , stdenv, writeScript, lib, erlang }: let version = "0.46.2"; owner = "erlang-ls"; repo = "erlang_ls"; deps = import ./rebar-deps.nix { inherit fetchHex fetchFromGitHub fetchgit; builder = buildRebar3; overrides = (self: super: { proper = super.proper.overrideAttrs (_: { configurePhase = "true"; }); redbug = super.redbug.overrideAttrs (_: { patchPhase = '' substituteInPlace rebar.config --replace ", warnings_as_errors" "" ''; }); }); }; in rebar3Relx { pname = "erlang-ls"; inherit version; src = fetchFromGitHub { inherit owner repo; sha256 = "sha256-J0Qa8s8v/KT4/Jaj9JYsfvzviMUx8FnX0nMoeH8bkB8="; rev = version; }; releaseType = "escript"; beamDeps = builtins.attrValues deps; # Skip "els_hover_SUITE" test for Erlang/OTP 25+ while upstream hasn't fixed it # https://github.com/erlang-ls/erlang_ls/pull/1402 postPatch = lib.optionalString (lib.versionOlder "25" erlang.version) '' rm apps/els_lsp/test/els_hover_SUITE.erl ''; buildPlugins = [ rebar3-proper ]; buildPhase = "HOME=. make"; # based on https://github.com/erlang-ls/erlang_ls/blob/main/.github/workflows/build.yml # these tests are excessively long and we should probably skip them checkPhase = '' HOME=. epmd -daemon HOME=. rebar3 ct HOME=. rebar3 proper --constraint_tries 100 ''; # 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/ ''; meta = with lib; { homepage = "https://github.com/erlang-ls/erlang_ls"; description = "The Erlang Language Server"; platforms = platforms.unix; license = licenses.asl20; }; passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #! nix-shell -i bash -p common-updater-scripts coreutils git gnused gnutar gzip "rebar3WithPlugins { globalPlugins = [ beamPackages.rebar3-nix ]; }" set -ox errexit latest=$(list-git-tags | sed -n '/[\d\.]\+/p' | sort -V | tail -1) if [[ "$latest" != "${version}" ]]; then nixpkgs="$(git rev-parse --show-toplevel)" nix_path="$nixpkgs/pkgs/development/beam-modules/erlang-ls" update-source-version erlang-ls "$latest" --version-key=version --print-changes --file="$nix_path/default.nix" tmpdir=$(mktemp -d) cp -R $(nix-build $nixpkgs --no-out-link -A erlang-ls.src)/* "$tmpdir" DEBUG=1 (cd "$tmpdir" && HOME=. rebar3 as test nix lock -o "$nix_path/rebar-deps.nix") else echo "erlang-ls is already up-to-date" fi ''; }