Skip to content

Commit

Permalink
fix(elixir-ls): substitute call to elixir in launchers (#349988)
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada authored Oct 20, 2024
2 parents 930dee9 + 435051f commit 926039f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/beam-modules/elixir-ls/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ mixRelease {
substitute release/debug_adapter.sh $out/bin/elixir-debug-adapter \
--replace 'exec "''${dir}/launch.sh"' "exec $out/lib/launch.sh"
chmod +x $out/bin/elixir-debug-adapter
# prepare the launcher
# prepare the launchers
substituteInPlace $out/lib/launch.sh \
--replace "ERL_LIBS=\"\$SCRIPTPATH:\$ERL_LIBS\"" \
"ERL_LIBS=$out/lib:\$ERL_LIBS" \
--replace "exec elixir" "exec ${elixir}/bin/elixir" \
--replace 'echo "" | elixir' "echo \"\" | ${elixir}/bin/elixir"
substituteInPlace $out/lib/exec.zsh \
--replace "exec elixir" "exec ${elixir}/bin/elixir"
runHook postInstall
'';
Expand Down

0 comments on commit 926039f

Please sign in to comment.