bunch of vscode changes + add luau-lsp
package
This commit is contained in:
parent
6cc838119d
commit
20f42f88d5
2 changed files with 467 additions and 415 deletions
41
packages/luau-lsp.nix
Normal file
41
packages/luau-lsp.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ pkgs, lib, ...
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "luau-lsp";
|
||||
version = "1.38.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "JohnnyMorganz";
|
||||
repo = "luau-lsp";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-31EdtCQftxhpp2b7fpM5XqRh+r0rBE/k9SpYEPpGpV0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.cmake ]
|
||||
++ lib.optional pkgs.stdenv.isLinux pkgs.gcc9;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
cmake ..
|
||||
cmake --build . --target Luau.LanguageServer.CLI --config Release
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp ./luau-lsp $out/bin/luau-lsp
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Language Server for Luau";
|
||||
homepage = "https://github.com/JohnnyMorganz/luau-lsp";
|
||||
downloadPage = "https://github.com/JohnnyMorganz/luau-lsp/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ cswimr ];
|
||||
mainProgram = "luau-lsp";
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue