feat(agnix): ship agnix-lsp and agnix-mcp with the CLI
CI / check (push) Has been cancelled

Editors and MCP clients need the language server and the MCP server, and
upstream's release job builds all three crates in one cargo invocation.
Build -p agnix-cli -p agnix-lsp -p agnix-mcp in the same derivation so the
workspace compiles once. Closes nix-overlay-ocf.
This commit is contained in:
2026-11-03 15:33:28 +03:00
parent 9c39cff0b0
commit 1edac7a69d
3 changed files with 10 additions and 6 deletions
+7 -4
View File
@@ -17,12 +17,15 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-wA2xnizHT5OuKOasxMYya/eJHWD0JaGUTYZpVcsEOFc=";
# The workspace also holds agnix-lsp, agnix-mcp and a wasm crate. Upstream
# ships the CLI alone as `agnix` (npm, pip, brew), so that is what we build;
# the wasm crate only compiles for wasm targets anyway.
# One build for the three native binaries, like upstream's release job. The
# wasm crate is left out: it only compiles for wasm targets.
cargoBuildFlags = [
"-p"
"agnix-cli"
"-p"
"agnix-lsp"
"-p"
"agnix-mcp"
"--bins"
];
@@ -35,7 +38,7 @@ rustPlatform.buildRustPackage rec {
];
meta = with lib; {
description = "Linter for AI agent configuration files: CLAUDE.md, AGENTS.md, SKILL.md, hooks and MCP configs";
description = "Linter for AI agent config files (CLAUDE.md, AGENTS.md, SKILL.md, hooks, MCP), with agnix-lsp and agnix-mcp";
homepage = "https://github.com/agent-sh/agnix";
changelog = "https://github.com/agent-sh/agnix/blob/v${version}/CHANGELOG.md";
license = with licenses; [