From 9c39cff0b0265672d0bf161eb3f0c6d249a3c54e Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Tue, 3 Nov 2026 15:14:49 +0300 Subject: [PATCH] feat(agnix): add agnix 0.60.3 built from source Add the agnix agent-config linter to the overlay. Built with rustPlatform.buildRustPackage from the v0.60.3 source tarball (cargoBuildFlags -p agnix-cli), so no upstream pre-built release binaries are fetched. Closes nix-overlay-wfv. --- .beads/issues.jsonl | 1 + README.md | 2 ++ packages/agnix/default.nix | 2 ++ packages/agnix/package.nix | 49 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 packages/agnix/default.nix create mode 100644 packages/agnix/package.nix diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index 4b482c2..d6ee0e7 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -34,5 +34,6 @@ {"_type":"issue","id":"nix-overlay-q2m","title":"Add FreeToken package (FlashML-org/FreeToken)","description":"Package https://github.com/FlashML-org/FreeToken into the overlay following the standard packages/\u0026lt;name\u0026gt;/{default.nix,package.nix} pattern. Must build via nix build, README updated, category set.","notes":"Build in progress. Resolved: tvm-ffi 0.1.13.post3 builds (cython 3.3.0 vendored, dontUsePytestCheck due to xdist addopts), flashlib wheel + pythonRemoveDeps, freetoken pythonRelaxDeps gguf/modelscope. Remaining: torch-bin CUDA closure (nccl done; libnvshmem source build ~hours), then freetoken extensions. Note: torch-bin 2.11 = +cu128 PyPI wheel autoPatchelf'd to nixpkgs cuda12.9 libs.","status":"closed","priority":2,"issue_type":"feature","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-30T06:40:20Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-30T17:51:10Z","started_at":"2026-08-30T06:40:34Z","closed_at":"2026-08-30T17:51:10Z","close_reason":"freetoken 0.1.2 packaged: builds via nix build .#freetoken, ft CLI verified (ft --version), imports checked, RPATHs correct (cudart 12.9 + torch-bin libs). Docs in README + meta.longDescription.","dependency_count":0,"dependent_count":0,"comment_count":0} {"id":"nix-overlay-qcg","title":"freetoken: bump 0.1.3 -> 0.2.0 once nixpkgs has torch 2.14 / transformers 5.18","description":"FreeToken 0.2.0 requires torch>=2.14,<2.15, torchvision>=0.29,<0.30, transformers>=5.18,<5.19, triton 3.8 and flashlib==0.4.0 (currently packaged: 0.3.0). nixos-unstable ships torch 2.11 and transformers 5.5.4, so the pin in flake.nix (nixpkgs-torch211) and packages/freetoken/package.nix must be reworked once a newer torch lands in nixpkgs.","status":"open","priority":3,"issue_type":"task","created_at":"2026-10-24T09:01:39.154532688Z","created_by":"minder","updated_at":"2026-10-24T09:01:39.154532688Z","source_repo":"nix-overlay","compaction_level":0,"original_size":0} {"_type":"issue","id":"nix-overlay-vhq","title":"Note missing Dolt remote in AGENTS.md","description":"## Why\\nAgents running bd dolt push see 'No remote is configured - skipping' and may mistake it for a failure (blocking session close). Document that this is expected: no Dolt remote is set up, beads state is versioned locally in .beads/ and committed via git.\\n\\n## What\\nAdd a short note in the Beads Issue Tracker / Session Completion section of AGENTS.md.\\n\\n## Acceptance\\n- AGENTS.md explains the expected bd dolt push output and that git push is the actual sync mechanism","status":"closed","priority":3,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T13:18:33Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T13:19:26Z","started_at":"2026-08-07T13:18:51Z","closed_at":"2026-08-07T13:19:26Z","close_reason":"AGENTS.md updated and pushed","dependency_count":0,"dependent_count":0,"comment_count":0} +{"id":"nix-overlay-wfv","title":"agnix: add package built from source","description":"Add agent-sh/agnix (Rust workspace, linter for AI agent configs) to the overlay. Source build only, no pre-built release binaries.","status":"closed","priority":3,"issue_type":"task","assignee":"minder","created_at":"2026-11-03T11:30:55.381952135Z","created_by":"minder","updated_at":"2026-11-03T12:14:36.548817499Z","closed_at":"2026-11-03T12:14:36.548082403Z","close_reason":"Built from source: nix build .#agnix succeeds (cargo build -p agnix-cli, src+cargo hashes verified), check phase 62 tests pass, agnix 0.60.3 binary lints a fixture SKILL.md","source_repo":"nix-overlay","compaction_level":0,"original_size":0} {"_type":"issue","id":"nix-overlay-ylf","title":"Add open-code-review package","description":"Package alibaba/open-code-review (AI code review CLI, npm @alibaba-group/open-code-review) into the overlay","status":"closed","priority":2,"issue_type":"feature","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-09-26T07:18:05Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-09-26T07:24:49Z","started_at":"2026-09-26T07:18:48Z","closed_at":"2026-09-26T07:24:49Z","close_reason":"Closed","dependency_count":0,"dependent_count":0,"comment_count":0} {"id":"nix-overlay-yxj","title":"Add memdoor package","description":"Add https://github.com/guregodevo/memdoor (Go CLI coding/automation agent) to packages/","status":"closed","priority":2,"issue_type":"task","assignee":"minder","created_at":"2026-11-01T18:25:31.524424793Z","created_by":"minder","updated_at":"2026-11-01T22:53:37.479304645Z","closed_at":"2026-11-01T22:53:37.477846036Z","close_reason":"Added packages/memdoor (v1.769.0), builds with upstream Go suite enabled","source_repo":"nix-overlay","compaction_level":0,"original_size":0} diff --git a/README.md b/README.md index e9ff6db..c3fef3b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ A custom Nix overlay and flake providing additional packages not found in upstre | Package | Description | Category | |---------|-------------|----------| +| `agnix` | Linter for AI agent configuration files: CLAUDE.md, AGENTS.md, SKILL.md, hooks and MCP configs | AI Coding Agents | | `awg-tool` | CLI for AmneziaWG self-hosting — generates 1.0/1.5/2.0/3.0 obfuscation parameters, exports .conf and vpn:// configs, installs servers over SSH | Networking | | `awgen` | Offline CLI for AmneziaWG configurations — harmonises native .conf and vpn:// inputs, generates client participants and tunnels, and analyses obfuscation | Networking | | `aionui` | Free, open-source, Cowork app with AI Agents | AI Coding Agents | @@ -235,6 +236,7 @@ nix-overlay/ │ ├── default.nix # Binary-cache-friendly overlay │ └── shared-nixpkgs.nix # Dependency-sharing overlay ├── packages/ # Package definitions +│ ├── agnix/ # Linter for AI agent configuration files │ ├── awg-tool/ # AmneziaWG parameter generation and SSH deployment CLI │ ├── awgen/ # Offline AmneziaWG configuration harmoniser and generator │ ├── aionui/ # AionUi - AI Cowork desktop app diff --git a/packages/agnix/default.nix b/packages/agnix/default.nix new file mode 100644 index 0000000..69b1a07 --- /dev/null +++ b/packages/agnix/default.nix @@ -0,0 +1,2 @@ +{ pkgs, ... }: +pkgs.callPackage ./package.nix { } diff --git a/packages/agnix/package.nix b/packages/agnix/package.nix new file mode 100644 index 0000000..bd5c507 --- /dev/null +++ b/packages/agnix/package.nix @@ -0,0 +1,49 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "agnix"; + version = "0.60.3"; + + src = fetchFromGitHub { + owner = "agent-sh"; + repo = "agnix"; + rev = "v${version}"; + hash = "sha256-XXrt9bgWLMPgsdiIp88SajpQpQ6nbSfGWu2WtHk2q8c="; + }; + + 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. + cargoBuildFlags = [ + "-p" + "agnix-cli" + "--bins" + ]; + + passthru.category = "AI Coding Agents"; + + passthru.updateScript = [ + "nix-update" + "--flake" + ".#agnix" + ]; + + meta = with lib; { + description = "Linter for AI agent configuration files: CLAUDE.md, AGENTS.md, SKILL.md, hooks and MCP configs"; + homepage = "https://github.com/agent-sh/agnix"; + changelog = "https://github.com/agent-sh/agnix/blob/v${version}/CHANGELOG.md"; + license = with licenses; [ + mit + asl20 + ]; + sourceProvenance = with sourceTypes; [ fromSource ]; + mainProgram = "agnix"; + platforms = platforms.all; + }; +}