From 9d6d028f2bf983f9e1b47e3c3e31d65f30157a43 Mon Sep 17 00:00:00 2001 From: David Houston Date: Sat, 18 Mar 2023 08:08:48 -0400 Subject: [PATCH] erlang-ls: Set `meta.mainProgram` The erlang language server's primary binary is `erlang_ls`, just like the repository name, but this package sets the package name to `erlang-ls` without also either aliasing the binary or setting `meta.mainProgram`. Setting `meta.mainProgram` to `erlang_ls` should allow the use of `lib.getExe`. --- pkgs/development/beam-modules/erlang-ls/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/beam-modules/erlang-ls/default.nix b/pkgs/development/beam-modules/erlang-ls/default.nix index f5390e186c08..25dd9879eeea 100644 --- a/pkgs/development/beam-modules/erlang-ls/default.nix +++ b/pkgs/development/beam-modules/erlang-ls/default.nix @@ -56,6 +56,7 @@ rebar3Relx { description = "The Erlang Language Server"; platforms = platforms.unix; license = licenses.asl20; + mainProgram = "erlang_ls"; }; passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell