Skip to content

Commit

Permalink
next-ls: init at 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens committed Jul 4, 2024
1 parent afff253 commit 5111366
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/by-name/ne/next-ls/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,

beam_minimal,
fetchFromGitHub,
}:

let
beamPackages = beam_minimal.packages.erlang_27;
elixir = beamPackages.elixir_1_17;
in

beamPackages.mixRelease rec {
pname = "next-ls";
version = "0.23.0";

src = fetchFromGitHub {
owner = "elixir-tools";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-wTEf0pxVIT7qmPufAN9vGR9rY31kWjNabYZwKe/hkVU=";
};

mixFodDeps = beamPackages.fetchMixDeps {
inherit src version elixir;
pname = "next-ls-deps";
hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q=";
};

inherit elixir;
inherit (beamPackages) erlang;

removeCookie = false;

# replace installPhase to change release target
installPhase = ''
runHook preInstall
mix release --no-deps-check --path $out plain
makeWrapper $out/bin/plain $out/bin/nextls --add-flags "eval \"System.no_halt(true); Application.ensure_all_started(:next_ls)\""
runHook postInstall
'';

meta = with lib; {
homepage = "https://www.elixir-tools.dev/next-ls/";
changelog = "https://github.com/elixir-tools/next-ls/releases/tag/v${version}";
description = "The language server for Elixir that just works";
license = licenses.mit;
mainProgram = "nextls";
maintainers = [ maintainers.adamcstephens ];
};
}

0 comments on commit 5111366

Please sign in to comment.