11 beamPackages.mixRelease rec {
15 src = fetchFromGitHub {
16 owner = "lexical-lsp";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-YKp1IOBIt6StYpVZyTj3BMZM/+6Bp+galbFpuBKYeOM=";
22 mixFodDeps = beamPackages.fetchMixDeps {
23 inherit pname version src;
25 hash = "sha256-myxmQM46TELDu9wpr82qxqH4s/YR9t0gdAfGOm0Dw1k=";
31 mix do compile --no-deps-check, package --path "$out"
37 substituteInPlace "$out/bin/start_lexical.sh" --replace 'elixir_command=' 'elixir_command="${elixir}/bin/"'
38 mv "$out/bin" "$out/libexec"
39 makeWrapper "$out/libexec/start_lexical.sh" "$out/bin/lexical" --set RELEASE_COOKIE lexical
43 updateScript = nix-update-script { };
44 tests.version = testers.testVersion { package = lexical; };
48 description = "Lexical is a next-generation elixir language server";
49 homepage = "https://github.com/lexical-lsp/lexical";
50 changelog = "https://github.com/lexical-lsp/lexical/releases/tag/v${version}";
51 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [ GaetanLepage ];
53 mainProgram = "lexical";
54 platforms = beamPackages.erlang.meta.platforms;