mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
c0e598759e
Diff: https://github.com/lexical-lsp/lexical/compare/refs/tags/v0.6.0...v0.6.1 Changelog: https://github.com/lexical-lsp/lexical/blob/main/CHANGELOG.md#v061
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
beamPackages,
|
|
fetchFromGitHub,
|
|
elixir,
|
|
}:
|
|
|
|
beamPackages.mixRelease rec {
|
|
pname = "lexical";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lexical-lsp";
|
|
repo = "lexical";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-gDiNjtYeEGoYoyoNmPh73EuYCvY36y9lUyLasbFrFgs=";
|
|
};
|
|
|
|
mixFodDeps = beamPackages.fetchMixDeps {
|
|
inherit pname version src;
|
|
|
|
hash = "sha256-xihxPfdLPr5jWFfcX2tccFUl7ND1mi9u8Dn28k6lGVA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mix do compile --no-deps-check, package --path "$out"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
postInstall = ''
|
|
substituteInPlace "$out/bin/start_lexical.sh" --replace 'elixir_command=' 'elixir_command="${elixir}/bin/"'
|
|
mv "$out/bin" "$out/libexec"
|
|
makeWrapper "$out/libexec/start_lexical.sh" "$out/bin/lexical" --set RELEASE_COOKIE lexical
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Lexical is a next-generation elixir language server";
|
|
homepage = "https://github.com/lexical-lsp/lexical";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
mainProgram = "lexical";
|
|
platforms = beamPackages.erlang.meta.platforms;
|
|
};
|
|
}
|