Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
|
|
beamPackages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
beamPackages.mixRelease rec {
|
|
pname = "next-ls";
|
|
version = "0.23.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elixir-tools";
|
|
repo = "next-ls";
|
|
tag = "v${version}";
|
|
hash = "sha256-2KzBOzrfoQQIqjEtYufvhT9bBibfEjNDiC+d3l5eaUc=";
|
|
};
|
|
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
inherit src version;
|
|
pname = "next-ls-deps";
|
|
hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q=";
|
|
};
|
|
|
|
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 = {
|
|
homepage = "https://www.elixir-tools.dev/next-ls/";
|
|
changelog = "https://github.com/elixir-tools/next-ls/releases/tag/v${version}";
|
|
description = "Language server for Elixir that just works";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "nextls";
|
|
maintainers = [ lib.maintainers.adamcstephens ];
|
|
platforms = beamPackages.erlang.meta.platforms;
|
|
};
|
|
}
|