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:
@@ -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; [
|
||||
|
||||
Reference in New Issue
Block a user