9 beamPackages = beam_minimal.packages.erlang_27;
10 elixir = beamPackages.elixir_1_17;
13 beamPackages.mixRelease rec {
17 src = fetchFromGitHub {
18 owner = "elixir-tools";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-jI7/BcS9CimCQskXd7Cq3EGPuc9l4L7Gre8hor58ags=";
24 mixFodDeps = beamPackages.fetchMixDeps {
25 inherit src version elixir;
26 pname = "next-ls-deps";
27 hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q=";
31 inherit (beamPackages) erlang;
35 # replace installPhase to change release target
39 mix release --no-deps-check --path $out plain
40 makeWrapper $out/bin/plain $out/bin/nextls --add-flags "eval \"System.no_halt(true); Application.ensure_all_started(:next_ls)\""
46 homepage = "https://www.elixir-tools.dev/next-ls/";
47 changelog = "https://github.com/elixir-tools/next-ls/releases/tag/v${version}";
48 description = "The language server for Elixir that just works";
49 license = licenses.mit;
50 mainProgram = "nextls";
51 maintainers = [ maintainers.adamcstephens ];
52 platforms = beamPackages.erlang.meta.platforms;