mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
openssl,
|
|
emmylua-ls,
|
|
pkg-config,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "emmylua_check";
|
|
inherit (emmylua-ls) version src cargoHash;
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
env.OPENSSL_NO_VENDOR = 1;
|
|
|
|
buildAndTestSubdir = "crates/emmylua_check";
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgram = "${placeholder "out"}/bin/emmylua_check";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Comprehensive Lua static analysis tool for code quality assurance";
|
|
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_check";
|
|
};
|
|
})
|