46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
rustPlatform,
|
||
|
|
versionCheckHook,
|
||
|
|
nix-update-script,
|
||
|
|
}:
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "emmylua_ls";
|
||
|
|
version = "0.14.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "EmmyLuaLs";
|
||
|
|
repo = "emmylua-analyzer-rust";
|
||
|
|
tag = finalAttrs.version;
|
||
|
|
hash = "sha256-V/Sy5h0dLayf9Oxgh9eFfDm00hJbwq1WAD8k0AA5GTw=";
|
||
|
|
};
|
||
|
|
|
||
|
|
buildAndTestSubdir = "crates/emmylua_ls";
|
||
|
|
|
||
|
|
cargoHash = "sha256-ijxLMf7FjX4LzrYwQilC1QfqRP91yFvq5WCoVFJ9V8M=";
|
||
|
|
|
||
|
|
nativeInstallCheckInputs = [
|
||
|
|
versionCheckHook
|
||
|
|
];
|
||
|
|
versionCheckProgram = "${placeholder "out"}/bin/emmylua_ls";
|
||
|
|
versionCheckProgramArg = "--version";
|
||
|
|
doInstallCheck = true;
|
||
|
|
|
||
|
|
passthru = {
|
||
|
|
updateScript = nix-update-script { };
|
||
|
|
};
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "EmmyLua Language Server";
|
||
|
|
homepage = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust";
|
||
|
|
changelog = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
mrcjkb
|
||
|
|
];
|
||
|
|
platforms = lib.platforms.all;
|
||
|
|
mainProgram = "emmylua_ls";
|
||
|
|
};
|
||
|
|
})
|