Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32b64b7f56 |
@@ -1,48 +0,0 @@
|
|||||||
# caveman
|
|
||||||
|
|
||||||
Talk like smart caveman. Same brain, fewer tokens.
|
|
||||||
|
|
||||||
## What it does
|
|
||||||
|
|
||||||
Compress every model response to caveman-style prose. Drops articles, filler, pleasantries, and hedging. Keeps every technical detail, code block, error string, and symbol exact. Cuts 65% of output tokens (measured) with full accuracy preserved. Mode persists for the whole session until changed or stopped.
|
|
||||||
|
|
||||||
Six intensity levels:
|
|
||||||
|
|
||||||
| Level | What change |
|
|
||||||
|-------|-------------|
|
|
||||||
| `lite` | Drop filler/hedging. Sentences stay full. Professional but tight. |
|
|
||||||
| `full` | Default. Drop articles, fragments OK, short synonyms. |
|
|
||||||
| `ultra` | Bare fragments. Abbreviations (DB, auth, fn). Arrows for causality. |
|
|
||||||
| `wenyan-lite` | Classical Chinese register, light compression. |
|
|
||||||
| `wenyan-full` | Maximum 文言文. 80-90% character reduction. |
|
|
||||||
| `wenyan-ultra` | Extreme classical compression. |
|
|
||||||
|
|
||||||
Auto-clarity rule: caveman drops to normal prose for security warnings, irreversible-action confirmations, multi-step sequences where fragment ambiguity risks misread, and when user repeats a question. Resumes after the clear part.
|
|
||||||
|
|
||||||
## How to invoke
|
|
||||||
|
|
||||||
```
|
|
||||||
/caveman # full mode (default)
|
|
||||||
/caveman lite # lighter compression
|
|
||||||
/caveman ultra # extreme compression
|
|
||||||
/caveman wenyan # classical Chinese
|
|
||||||
stop caveman # back to normal prose
|
|
||||||
```
|
|
||||||
|
|
||||||
## Example output
|
|
||||||
|
|
||||||
Question: "Why does my React component re-render?"
|
|
||||||
|
|
||||||
Normal prose:
|
|
||||||
> Your component re-renders because you create a new object reference each render. Wrapping it in `useMemo` will fix the issue.
|
|
||||||
|
|
||||||
Caveman (full):
|
|
||||||
> New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`.
|
|
||||||
|
|
||||||
Caveman (ultra):
|
|
||||||
> Inline obj prop → new ref → re-render. `useMemo`.
|
|
||||||
|
|
||||||
## See also
|
|
||||||
|
|
||||||
- [`SKILL.md`](./SKILL.md) — full LLM-facing instructions
|
|
||||||
- [Caveman README](../../README.md) — repo overview, install, benchmarks
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
---
|
|
||||||
name: caveman
|
|
||||||
description: >
|
|
||||||
Ultra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman
|
|
||||||
while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra,
|
|
||||||
wenyan-lite, wenyan-full, wenyan-ultra.
|
|
||||||
Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens",
|
|
||||||
"be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
|
|
||||||
---
|
|
||||||
|
|
||||||
Respond terse like smart caveman. All technical substance stay. Only fluff die.
|
|
||||||
|
|
||||||
## Persistence
|
|
||||||
|
|
||||||
ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure. Off only: "stop caveman" / "normal mode".
|
|
||||||
|
|
||||||
Default: **full**. Switch: `/caveman lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra|off`.
|
|
||||||
|
|
||||||
## Rules
|
|
||||||
|
|
||||||
Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). No tool-call narration, no decorative tables/emoji, no dumping long raw error logs unless asked — quote shortest decisive line. Standard well-known tech acronyms OK (DB/API/HTTP); never invent new abbreviations (cfg/impl/req/res/fn) — tokenizer split them same as full word: zero token saved, reader still decode. Full word cheaper AND clearer. No causal arrows (→) either — own token, save nothing. Technical terms exact. Code blocks unchanged. Errors quoted exact.
|
|
||||||
|
|
||||||
Never drop not/never/no/only/except — flip meaning worse than any token saved. Numbers, units exact.
|
|
||||||
|
|
||||||
Tool calls: fire direct. No preamble, plan, or progress note before or between calls. After result: next call direct or final answer — never announce next call. Text before call only to clarify, warn security/irreversible, or resolve ambiguity.
|
|
||||||
|
|
||||||
Preserve user's dominant language exactly — reply in the language user writes, never switch regardless of example text or multilingual context elsewhere. Compress the style, not the language. Every emitted line in that language — openings, pre-tool status lines, all — not just final reply. ALWAYS keep technical terms, code, API names, CLI commands, commit-type keywords (feat/fix/...), and exact error strings verbatim — unless user explicitly ask for translation.
|
|
||||||
|
|
||||||
'Drop articles' = article languages only. Where small markers carry case/role (particles, postpositions), keep them — grammar, not filler; compress politeness/filler instead.
|
|
||||||
|
|
||||||
No self-reference. Never name or announce the style. No "caveman mode on", "me caveman think", no third-person caveman tags. Output caveman-only — never normal answer plus "Caveman:" recap. Exception: user explicitly ask what the mode is.
|
|
||||||
|
|
||||||
Pattern: `[thing] [action] [reason]. [next step].`
|
|
||||||
|
|
||||||
Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
|
|
||||||
Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
|
|
||||||
|
|
||||||
## Intensity
|
|
||||||
|
|
||||||
| Level | What change |
|
|
||||||
|-------|------------|
|
|
||||||
| **lite** | No filler/hedging. Keep articles + full sentences. Professional but tight |
|
|
||||||
| **full** | Drop articles, fragments OK, short synonyms. Classic caveman. No tool-call narration, no decorative tables/emoji, no long raw error-log dumps unless asked. Standard acronyms OK; no invented abbreviations |
|
|
||||||
| **ultra** | Strip conjunctions when cause-then-effect stay unambiguous. One word when one word enough. State each fact once. NO prose abbreviations (cfg/impl/req/res/fn/auth), NO arrows (X → Y) — measured zero token saving under tokenizer, cost decode clarity. Code symbols, function names, API names, error strings: never touch |
|
|
||||||
| **wenyan-lite** | Semi-classical. Drop filler/hedging but keep grammar structure, classical register |
|
|
||||||
| **wenyan-full** | Maximum classical terseness. Fully 文言文. 80-90% character reduction — chars, not tokens. Classical sentence patterns, verbs precede objects, subjects often omitted, classical particles (之/乃/為/其) |
|
|
||||||
| **wenyan-ultra** | Extreme abbreviation while keeping classical Chinese feel. Maximum compression, ultra terse |
|
|
||||||
|
|
||||||
Example — "Why React component re-render?"
|
|
||||||
- lite: "Your component re-renders because you create a new object reference each render. Wrap it in `useMemo`."
|
|
||||||
- full: "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
|
|
||||||
- ultra: "Inline obj prop, new ref, re-render. `useMemo`."
|
|
||||||
- wenyan-lite: "組件頻重繪,以每繪新生對象參照故。以 useMemo 包之。"
|
|
||||||
- wenyan-full: "每繪新生對象參照,故重繪;以 useMemo 包之則免。"
|
|
||||||
- wenyan-ultra: "新參照則重繪。useMemo 包之。"
|
|
||||||
|
|
||||||
Example — "Explain database connection pooling."
|
|
||||||
- lite: "Connection pooling reuses open connections instead of creating new ones per request. Avoids repeated handshake overhead."
|
|
||||||
- full: "Pool reuse open DB connections. No new connection per request. Skip handshake overhead."
|
|
||||||
- ultra: "Pool reuse open DB connections. No per-request handshake."
|
|
||||||
- wenyan-full: "池蓄已開之連,不逐請而新開,省握手之費。"
|
|
||||||
- wenyan-ultra: "池蓄連,免逐請新開,省握手。"
|
|
||||||
|
|
||||||
Classical chars = wenyan modes only. Never swap a word to a classical char to shrink at non-wenyan levels.
|
|
||||||
|
|
||||||
## Auto-Clarity
|
|
||||||
|
|
||||||
Drop caveman when:
|
|
||||||
- Security warnings
|
|
||||||
- Irreversible action confirmations
|
|
||||||
- Multi-step sequences where fragment order or omitted conjunctions risk misread
|
|
||||||
- Compression itself creates technical ambiguity (e.g., `"migrate table drop column backup first"` — order unclear without articles/conjunctions)
|
|
||||||
- User asks to clarify or repeats question
|
|
||||||
|
|
||||||
Resume caveman after clear part done.
|
|
||||||
|
|
||||||
Example shows FORMAT only — write warning in session language, not example's.
|
|
||||||
|
|
||||||
Example — destructive op:
|
|
||||||
> **Warning:** This will permanently delete all rows in the `users` table and cannot be undone.
|
|
||||||
> ```sql
|
|
||||||
> DROP TABLE users;
|
|
||||||
> ```
|
|
||||||
> Caveman resume. Verify backup exist first.
|
|
||||||
|
|
||||||
## Boundaries
|
|
||||||
|
|
||||||
Persisted outside chat: write normal prose — code, comments, commits, docs, issue/PR/MR text, memory files, third-party messages (/caveman-compress exempt). "stop caveman" or "normal mode": revert. Level persist until changed or session end.
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
---
|
|
||||||
name: karpathy-guidelines
|
|
||||||
description: Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
|
|
||||||
license: MIT
|
|
||||||
---
|
|
||||||
|
|
||||||
# Karpathy Guidelines
|
|
||||||
|
|
||||||
Behavioral guidelines to reduce common LLM coding mistakes, derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls.
|
|
||||||
|
|
||||||
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
|
|
||||||
|
|
||||||
## 1. Think Before Coding
|
|
||||||
|
|
||||||
**Don't assume. Don't hide confusion. Surface tradeoffs.**
|
|
||||||
|
|
||||||
Before implementing:
|
|
||||||
- State your assumptions explicitly. If uncertain, ask.
|
|
||||||
- If multiple interpretations exist, present them - don't pick silently.
|
|
||||||
- If a simpler approach exists, say so. Push back when warranted.
|
|
||||||
- If something is unclear, stop. Name what's confusing. Ask.
|
|
||||||
|
|
||||||
## 2. Simplicity First
|
|
||||||
|
|
||||||
**Minimum code that solves the problem. Nothing speculative.**
|
|
||||||
|
|
||||||
- No features beyond what was asked.
|
|
||||||
- No abstractions for single-use code.
|
|
||||||
- No "flexibility" or "configurability" that wasn't requested.
|
|
||||||
- No error handling for impossible scenarios.
|
|
||||||
- If you write 200 lines and it could be 50, rewrite it.
|
|
||||||
|
|
||||||
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
|
|
||||||
|
|
||||||
## 3. Surgical Changes
|
|
||||||
|
|
||||||
**Touch only what you must. Clean up only your own mess.**
|
|
||||||
|
|
||||||
When editing existing code:
|
|
||||||
- Don't "improve" adjacent code, comments, or formatting.
|
|
||||||
- Don't refactor things that aren't broken.
|
|
||||||
- Match existing style, even if you'd do it differently.
|
|
||||||
- If you notice unrelated dead code, mention it - don't delete it.
|
|
||||||
|
|
||||||
When your changes create orphans:
|
|
||||||
- Remove imports/variables/functions that YOUR changes made unused.
|
|
||||||
- Don't remove pre-existing dead code unless asked.
|
|
||||||
|
|
||||||
The test: Every changed line should trace directly to the user's request.
|
|
||||||
|
|
||||||
## 4. Goal-Driven Execution
|
|
||||||
|
|
||||||
**Define success criteria. Loop until verified.**
|
|
||||||
|
|
||||||
Transform tasks into verifiable goals:
|
|
||||||
- "Add validation" → "Write tests for invalid inputs, then make them pass"
|
|
||||||
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
|
|
||||||
- "Refactor X" → "Ensure tests pass before and after"
|
|
||||||
|
|
||||||
For multi-step tasks, state a brief plan:
|
|
||||||
```
|
|
||||||
1. [Step] → verify: [check]
|
|
||||||
2. [Step] → verify: [check]
|
|
||||||
3. [Step] → verify: [check]
|
|
||||||
```
|
|
||||||
|
|
||||||
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
# Dolt database (managed by Dolt, not git)
|
|
||||||
dolt/
|
|
||||||
embeddeddolt/
|
|
||||||
|
|
||||||
# Runtime files
|
|
||||||
bd.sock
|
|
||||||
bd.sock.startlock
|
|
||||||
sync-state.json
|
|
||||||
last-touched
|
|
||||||
.exclusive-lock
|
|
||||||
|
|
||||||
# Daemon runtime (lock, log, pid)
|
|
||||||
daemon.*
|
|
||||||
|
|
||||||
# Interactions log (runtime, not versioned)
|
|
||||||
interactions.jsonl
|
|
||||||
|
|
||||||
# Push state (runtime, per-machine)
|
|
||||||
push-state.json
|
|
||||||
|
|
||||||
# Lock files (various runtime locks)
|
|
||||||
*.lock
|
|
||||||
|
|
||||||
# Credential key (encryption key for federation peer auth — never commit)
|
|
||||||
.beads-credential-key
|
|
||||||
|
|
||||||
# Local version tracking (prevents upgrade notification spam after git ops)
|
|
||||||
.local_version
|
|
||||||
|
|
||||||
# Worktree redirect file (contains relative path to main repo's .beads/)
|
|
||||||
# Must not be committed as paths would be wrong in other clones
|
|
||||||
redirect
|
|
||||||
|
|
||||||
# Sync state (local-only, per-machine)
|
|
||||||
# These files are machine-specific and should not be shared across clones
|
|
||||||
.sync.lock
|
|
||||||
export-state/
|
|
||||||
export-state.json
|
|
||||||
|
|
||||||
# Ephemeral store (SQLite - wisps/molecules, intentionally not versioned)
|
|
||||||
ephemeral.sqlite3
|
|
||||||
ephemeral.sqlite3-journal
|
|
||||||
ephemeral.sqlite3-wal
|
|
||||||
ephemeral.sqlite3-shm
|
|
||||||
|
|
||||||
# Dolt server management (auto-started by bd)
|
|
||||||
dolt-server.pid
|
|
||||||
dolt-server.log
|
|
||||||
dolt-server.lock
|
|
||||||
dolt-server.port
|
|
||||||
dolt-server.activity
|
|
||||||
|
|
||||||
# Corrupt backup directories (created by bd doctor --fix recovery)
|
|
||||||
*.corrupt.backup/
|
|
||||||
|
|
||||||
# Backup data (auto-exported JSONL, local-only)
|
|
||||||
backup/
|
|
||||||
|
|
||||||
# Per-project environment file (Dolt connection config, GH#2520)
|
|
||||||
.env
|
|
||||||
|
|
||||||
# Legacy files (from pre-Dolt versions)
|
|
||||||
*.db
|
|
||||||
*.db?*
|
|
||||||
*.db-journal
|
|
||||||
*.db-wal
|
|
||||||
*.db-shm
|
|
||||||
db.sqlite
|
|
||||||
bd.db
|
|
||||||
# NOTE: Do NOT add negation patterns here.
|
|
||||||
# They would override fork protection in .git/info/exclude.
|
|
||||||
# Config files (metadata.json, config.yaml) are tracked by git by default
|
|
||||||
# since no pattern above ignores them.
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
# Beads - AI-Native Issue Tracking
|
|
||||||
|
|
||||||
Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.
|
|
||||||
|
|
||||||
## What is Beads?
|
|
||||||
|
|
||||||
Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.
|
|
||||||
|
|
||||||
**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)
|
|
||||||
|
|
||||||
## Quick Start
|
|
||||||
|
|
||||||
### Essential Commands
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Create new issues
|
|
||||||
bd create "Add user authentication"
|
|
||||||
|
|
||||||
# View all issues
|
|
||||||
bd list
|
|
||||||
|
|
||||||
# View issue details
|
|
||||||
bd show <issue-id>
|
|
||||||
|
|
||||||
# Update issue status
|
|
||||||
bd update <issue-id> --claim
|
|
||||||
bd update <issue-id> --status done
|
|
||||||
|
|
||||||
# Sync with Dolt remote
|
|
||||||
bd dolt push
|
|
||||||
```
|
|
||||||
|
|
||||||
### Working with Issues
|
|
||||||
|
|
||||||
Issues in Beads are:
|
|
||||||
- **Git-native**: Stored in Dolt database with version control and branching
|
|
||||||
- **AI-friendly**: CLI-first design works perfectly with AI coding agents
|
|
||||||
- **Branch-aware**: Issues can follow your branch workflow
|
|
||||||
- **Always in sync**: Auto-syncs with your commits
|
|
||||||
|
|
||||||
## Why Beads?
|
|
||||||
|
|
||||||
✨ **AI-Native Design**
|
|
||||||
- Built specifically for AI-assisted development workflows
|
|
||||||
- CLI-first interface works seamlessly with AI coding agents
|
|
||||||
- No context switching to web UIs
|
|
||||||
|
|
||||||
🚀 **Developer Focused**
|
|
||||||
- Issues live in your repo, right next to your code
|
|
||||||
- Works offline, syncs when you push
|
|
||||||
- Fast, lightweight, and stays out of your way
|
|
||||||
|
|
||||||
🔧 **Git Integration**
|
|
||||||
- Automatic sync with git commits
|
|
||||||
- Branch-aware issue tracking
|
|
||||||
- Dolt-native three-way merge resolution
|
|
||||||
|
|
||||||
## Get Started with Beads
|
|
||||||
|
|
||||||
Try Beads in your own projects:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Install Beads
|
|
||||||
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
|
|
||||||
|
|
||||||
# Initialize in your repo
|
|
||||||
bd init
|
|
||||||
|
|
||||||
# Create your first issue
|
|
||||||
bd create "Try out Beads"
|
|
||||||
```
|
|
||||||
|
|
||||||
## Learn More
|
|
||||||
|
|
||||||
- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
|
|
||||||
- **Quick Start Guide**: Run `bd quickstart`
|
|
||||||
- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*Beads: Issue tracking that moves at the speed of thought* ⚡
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
# Beads Configuration File
|
|
||||||
# This file configures default behavior for all bd commands in this repository
|
|
||||||
# All settings can also be set via environment variables (BD_* prefix)
|
|
||||||
# or overridden with command-line flags
|
|
||||||
|
|
||||||
# Issue prefix for this repository (used by bd init)
|
|
||||||
# If not set, bd init will auto-detect from directory name
|
|
||||||
# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
|
|
||||||
# issue-prefix: ""
|
|
||||||
|
|
||||||
# Use no-db mode: JSONL-only, no Dolt database
|
|
||||||
# When true, bd will use .beads/issues.jsonl as the source of truth
|
|
||||||
# no-db: false
|
|
||||||
|
|
||||||
# Enable JSON output by default
|
|
||||||
# json: false
|
|
||||||
|
|
||||||
# Feedback title formatting for mutating commands (create/update/close/dep/edit)
|
|
||||||
# 0 = hide titles, N > 0 = truncate to N characters
|
|
||||||
# output:
|
|
||||||
# title-length: 255
|
|
||||||
|
|
||||||
# Default actor for audit trails (overridden by BEADS_ACTOR or --actor)
|
|
||||||
# actor: ""
|
|
||||||
|
|
||||||
# Export events (audit trail) to .beads/events.jsonl on each flush/sync
|
|
||||||
# When enabled, new events are appended incrementally using a high-water mark.
|
|
||||||
# Use 'bd export --events' to trigger manually regardless of this setting.
|
|
||||||
# events-export: false
|
|
||||||
|
|
||||||
# Multi-repo configuration (experimental - bd-307)
|
|
||||||
# Allows hydrating from multiple repositories and routing writes to the correct database
|
|
||||||
# repos:
|
|
||||||
# primary: "." # Primary repo (where this database lives)
|
|
||||||
# additional: # Additional repos to hydrate from (read-only)
|
|
||||||
# - ~/beads-planning # Personal planning repo
|
|
||||||
# - ~/work-planning # Work planning repo
|
|
||||||
|
|
||||||
# JSONL backup (periodic export for off-machine recovery)
|
|
||||||
# Auto-enabled when a git remote exists. Override explicitly:
|
|
||||||
# backup:
|
|
||||||
# enabled: false # Disable auto-backup entirely
|
|
||||||
# interval: 15m # Minimum time between auto-exports
|
|
||||||
# git-push: false # Disable git push (export locally only)
|
|
||||||
# git-repo: "" # Separate git repo for backups (default: project repo)
|
|
||||||
|
|
||||||
# Integration settings (access with 'bd config get/set')
|
|
||||||
# These are stored in the database, not in this file:
|
|
||||||
# - jira.url
|
|
||||||
# - jira.project
|
|
||||||
# - linear.url
|
|
||||||
# - linear.api-key
|
|
||||||
# - github.org
|
|
||||||
# - github.repo
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
|
||||||
# This section is managed by beads. Do not remove these markers.
|
|
||||||
if command -v bd >/dev/null 2>&1; then
|
|
||||||
export BD_GIT_HOOK=1
|
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
|
||||||
timeout "$_bd_timeout" bd hooks run post-checkout "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
|
||||||
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
bd hooks run post-checkout "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
||||||
fi
|
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
|
||||||
# This section is managed by beads. Do not remove these markers.
|
|
||||||
if command -v bd >/dev/null 2>&1; then
|
|
||||||
export BD_GIT_HOOK=1
|
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
|
||||||
timeout "$_bd_timeout" bd hooks run post-merge "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
|
||||||
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
bd hooks run post-merge "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
||||||
fi
|
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
|
||||||
# This section is managed by beads. Do not remove these markers.
|
|
||||||
if command -v bd >/dev/null 2>&1; then
|
|
||||||
export BD_GIT_HOOK=1
|
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
|
||||||
timeout "$_bd_timeout" bd hooks run pre-commit "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
|
||||||
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
bd hooks run pre-commit "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
||||||
fi
|
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
|
||||||
# This section is managed by beads. Do not remove these markers.
|
|
||||||
if command -v bd >/dev/null 2>&1; then
|
|
||||||
export BD_GIT_HOOK=1
|
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
|
||||||
timeout "$_bd_timeout" bd hooks run pre-push "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
|
||||||
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
bd hooks run pre-push "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
||||||
fi
|
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
|
||||||
# This section is managed by beads. Do not remove these markers.
|
|
||||||
if command -v bd >/dev/null 2>&1; then
|
|
||||||
export BD_GIT_HOOK=1
|
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
|
||||||
timeout "$_bd_timeout" bd hooks run prepare-commit-msg "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
|
||||||
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
bd hooks run prepare-commit-msg "$@"
|
|
||||||
_bd_exit=$?
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
|
|
||||||
_bd_exit=0
|
|
||||||
fi
|
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
|
||||||
fi
|
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{"_type":"issue","id":"nix-overlay-q00","title":"Add haivemind package","description":"Package https://github.com/dev-boz/haivemind in the Nix overlay, document it, validate the build, and complete repository workflow.","status":"closed","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-08T16:32:37Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-08T16:36:41Z","started_at":"2026-08-08T16:33:00Z","closed_at":"2026-08-08T16:36:41Z","close_reason":"Closed","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
{"_type":"issue","id":"nix-overlay-67e","title":"Add traycer package","description":"Add new package for traycer from https://github.com/traycerai/traycer. Steps: research repo build system, create packages/traycer/, stage with git add, test nix build, update README.","status":"closed","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T08:59:25Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T09:22:07Z","started_at":"2026-08-07T09:00:29Z","closed_at":"2026-08-07T09:22:07Z","close_reason":"Traycer package added, built, pushed","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
{"_type":"issue","id":"nix-overlay-2gf","title":"Update all packages to latest versions","description":"## Why\\nUser request: update every package in the overlay to its latest upstream version.\\n\\n## What\\nBump version + src hash (and cargoHash for Rust) in each packages/\u003cname\u003e/package.nix, update README table if needed, verify builds.\\n\\n## Acceptance\\n- Every package builds with nix build .#\u003cname\u003e\\n- README reflects new versions\\n- Changes committed and pushed","notes":"All packages updated and built successfully. Commit 1f3f0f468bdd on local main. PUSH BLOCKED: git.millerson.name:22002 and DoltHub unreachable from this network (SSH connect timeout). Re-run git push + bd dolt push when network is back, then close.","status":"closed","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T07:22:50Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T13:17:34Z","started_at":"2026-08-07T07:22:55Z","closed_at":"2026-08-07T13:17:34Z","close_reason":"All packages updated to latest versions, verified building, pushed to origin","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
{"_type":"issue","id":"nix-overlay-9xs","title":"Update all packages to latest versions","description":"Update every package in packages/ to its latest upstream version, refresh source hashes and cargoHashes, verify builds, update README.","status":"in_progress","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T05:45:16Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T05:45:22Z","started_at":"2026-08-07T05:45:22Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
{"_type":"issue","id":"nix-overlay-f8c","title":"Add nftablesbuilder package","description":"Package NftablesBuilder (github.com/AiseBouma/NftablesBuilder) web interface to manage nftables. Upstream source is incomplete (missing settings crate, no GUI build tooling, no Cargo.lock) so: patch in authored settings crate (schema from release artifacts), build Rust workspace from pinned commit, reuse built GUI assets from hash-pinned release tarball.","status":"closed","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T04:58:22Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T05:38:40Z","started_at":"2026-08-07T04:58:25Z","closed_at":"2026-08-07T05:38:40Z","close_reason":"Package added, builds green, committed","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
{"_type":"issue","id":"nix-overlay-bjd","title":"Add nftables-analyzer CLI package","description":"Add python3Packages.buildPythonApplication derivation for reinaldosaraiva/nftables-analyzer (CLI only). Pin to main commit 5fc78d0c9ce173e3baa80a5655bcadb1b2f78493 (no tags upstream). sourceRoot=source/backend, hatchling build system. Category: Networking. Frontend excluded - upstream repo missing frontend/src/lib modules.","status":"closed","priority":2,"issue_type":"task","assignee":"Alexander Miroshnichenko","owner":"alex@millerson.name","created_at":"2026-08-07T04:48:07Z","created_by":"Alexander Miroshnichenko","updated_at":"2026-08-07T04:50:25Z","started_at":"2026-08-07T04:48:10Z","closed_at":"2026-08-07T04:50:25Z","close_reason":"Package added, built, smoke-tested, committed","dependency_count":0,"dependent_count":0,"comment_count":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}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"database": "dolt",
|
|
||||||
"backend": "dolt",
|
|
||||||
"dolt_mode": "embedded",
|
|
||||||
"dolt_database": "nix_overlay",
|
|
||||||
"project_id": "bf9206b6-9430-479c-bc02-786cff5dbffc"
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"hooks": {
|
|
||||||
"PreCompact": [
|
|
||||||
{
|
|
||||||
"hooks": [
|
|
||||||
{
|
|
||||||
"command": "bd prime",
|
|
||||||
"type": "command"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"matcher": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"SessionStart": [
|
|
||||||
{
|
|
||||||
"hooks": [
|
|
||||||
{
|
|
||||||
"command": "bd prime",
|
|
||||||
"type": "command"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"matcher": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: cachix/install-nix-action@v27
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- name: Flake check (formatting + evaluation)
|
|
||||||
run: nix flake check
|
|
||||||
- name: Build all packages (best-effort, may time out)
|
|
||||||
run: nix build .#packages || true
|
|
||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
.qoder
|
|
||||||
.qwen
|
|
||||||
.claude/
|
|
||||||
result
|
|
||||||
result-*
|
|
||||||
.direnv/
|
|
||||||
.tasks/
|
|
||||||
|
|
||||||
# Beads / Dolt files (added by bd init)
|
|
||||||
.dolt/
|
|
||||||
*.db
|
|
||||||
.beads-credential-key
|
|
||||||
@@ -1,431 +0,0 @@
|
|||||||
# AGENTS.md - Instructions for AI Agents
|
|
||||||
|
|
||||||
This file provides guidance to AI agents (such as Claude, GPT, Goose, etc.) when working with this Nix overlay repository.
|
|
||||||
|
|
||||||
## Project Overview
|
|
||||||
|
|
||||||
This is a **Nix flake overlay** repository that provides additional packages for Nix/NixOS users. It uses [numtide/blueprint](https://github.com/numtide/blueprint) as its foundation, which simplifies flake development by providing sensible defaults and automatic package discovery.
|
|
||||||
|
|
||||||
**Repository URL**: `git+https://git.millerson.name/alex/millerson-overlay.nix.git`
|
|
||||||
|
|
||||||
## Key Concepts
|
|
||||||
|
|
||||||
1. Don't assume. Don't hide confusion. Surface tradeoffs.
|
|
||||||
2. Minimum code that solves the problem. Nothing speculative.
|
|
||||||
3. Touch only what you must. Clean up only your own mess.
|
|
||||||
4. Define success criteria. Loop until verified.
|
|
||||||
|
|
||||||
## Before Starting Any Work
|
|
||||||
|
|
||||||
**MANDATORY** — Before writing code, running builds, or making any changes:
|
|
||||||
|
|
||||||
1. **Run `bd prime`** — Get full workflow context and available commands
|
|
||||||
2. **Check for existing issues** — Run `bd ready` to find available work
|
|
||||||
3. **Claim the task** — Use `bd update <id> --claim` before starting
|
|
||||||
4. **Track via `bd` ONLY** — NEVER use TodoWrite, TaskCreate, or markdown TODO lists. All task tracking goes through `bd`.
|
|
||||||
|
|
||||||
Violating this rule means the agent is working outside the project's workflow. Stop and re-claim via `bd` first.
|
|
||||||
|
|
||||||
### Required Skills
|
|
||||||
|
|
||||||
Always use these skills when working with this repository:
|
|
||||||
- **nix** - For nixpkgs package lookups, option searches, and NixOS/Home Manager queries
|
|
||||||
- **nix-flakes** - For reproducible builds, flake management, and devShell operations
|
|
||||||
- **karpathy-guidelines** - For high-quality task execution best practices
|
|
||||||
|
|
||||||
### Required MCP Server
|
|
||||||
|
|
||||||
- **sequentialthinking** — MUST be used for ANY planning, problem-solving, or decision-making.
|
|
||||||
Invoke `sequentialthinking` MCP before:
|
|
||||||
- Designing implementation approaches
|
|
||||||
- Debugging non-obvious issues
|
|
||||||
- Evaluating trade-offs between approaches
|
|
||||||
- Breaking down complex tasks
|
|
||||||
- When you're uncertain about the best path forward
|
|
||||||
|
|
||||||
Do NOT skip deliberative thinking. Surface reasoning through sequentialthinking before acting.
|
|
||||||
|
|
||||||
### Communication: Caveman Mode
|
|
||||||
|
|
||||||
Use **caveman** skill for all user-facing communication. Responses should be:
|
|
||||||
- Ultra-compressed — cut token waste, keep technical substance
|
|
||||||
- Direct — no filler, no hedging, no "I'd recommend"
|
|
||||||
- Action-oriented — state what was done and what's next
|
|
||||||
|
|
||||||
Trigger: `skill: "caveman"` before responding to the user.
|
|
||||||
|
|
||||||
### Blueprint Framework
|
|
||||||
|
|
||||||
This project uses `numtide/blueprint` which:
|
|
||||||
- Automatically discovers packages in the `packages/` directory
|
|
||||||
- Provides `perSystem` outputs for multi-system builds
|
|
||||||
- Handles formatting, checking, and devShell generation
|
|
||||||
- Exposes `mkPackagesFor` function to build packages against any nixpkgs instance
|
|
||||||
|
|
||||||
**Important**: Blueprint's package discovery reads from the git index, not the working directory. New package directories must be staged with `git add` before they appear in flake outputs. Unstaged files are invisible to `nix build`, `nix flake show`, and `nix run`.
|
|
||||||
|
|
||||||
### Two Overlay Strategies
|
|
||||||
|
|
||||||
1. **`overlays.default`** - Binary-cache-friendly
|
|
||||||
- Uses packages built against this flake's nixpkgs revision
|
|
||||||
- Better for binary cache hits when using the same nixpkgs
|
|
||||||
|
|
||||||
2. **`overlays.shared-nixpkgs`** - Dependency-sharing
|
|
||||||
- Builds packages against the consumer's nixpkgs (`final`)
|
|
||||||
- Shares dependencies with the rest of the system
|
|
||||||
- No second nixpkgs evaluation
|
|
||||||
- Trade-off: binary cache only hits when consumer's nixpkgs matches ours
|
|
||||||
|
|
||||||
## Repository Structure
|
|
||||||
|
|
||||||
```
|
|
||||||
nix-overlay/
|
|
||||||
├── flake.nix # Main flake definition with inputs and outputs
|
|
||||||
├── overlays/
|
|
||||||
│ ├── default.nix # Overlay using pre-built packages (binary cache friendly)
|
|
||||||
│ └── shared-nixpkgs.nix # Overlay building against consumer's nixpkgs
|
|
||||||
├── packages/
|
|
||||||
│ ├── default/ # Meta-package listing all visible packages
|
|
||||||
│ │ ├── default.nix
|
|
||||||
│ │ └── package.nix
|
|
||||||
│ └── flake-inputs/ # Utility to cache all flake inputs
|
|
||||||
│ └── default.nix
|
|
||||||
├── README.md # User-facing documentation
|
|
||||||
├── AGENTS.md # This file - AI agent instructions
|
|
||||||
├── LICENSE
|
|
||||||
└── flake.lock
|
|
||||||
```
|
|
||||||
|
|
||||||
## Package Definition Pattern
|
|
||||||
|
|
||||||
### Standard Package Structure
|
|
||||||
|
|
||||||
Each package should follow this structure:
|
|
||||||
|
|
||||||
```
|
|
||||||
packages/<package-name>/
|
|
||||||
├── default.nix # Wrapper that receives blueprint args (pkgs, perSystem, etc.)
|
|
||||||
└── package.nix # Actual package definition using pkgs.callPackage pattern
|
|
||||||
```
|
|
||||||
|
|
||||||
### `default.nix` Pattern
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
perSystem,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix {
|
|
||||||
# Pass any extra arguments here
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### `package.nix` Pattern
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
# ... package-specific dependencies
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "my-package";
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "user";
|
|
||||||
repo = "repo";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-...";
|
|
||||||
};
|
|
||||||
|
|
||||||
# ... build instructions
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Brief description";
|
|
||||||
homepage = "https://...";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
mainProgram = "program-name";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Rust Packages
|
|
||||||
|
|
||||||
For Rust packages, use `rustPlatform.buildRustPackage`:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "my-rust-app";
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub { ... };
|
|
||||||
|
|
||||||
cargoHash = "sha256-...";
|
|
||||||
|
|
||||||
# ... build instructions
|
|
||||||
|
|
||||||
meta = { ... };
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Adding a New Package
|
|
||||||
|
|
||||||
When adding a new package:
|
|
||||||
|
|
||||||
1. **Create the directory**: `mkdir -p packages/<package-name>`
|
|
||||||
|
|
||||||
2. **Create `package.nix`** with the actual derivation
|
|
||||||
|
|
||||||
3. **Create `default.nix`** as a wrapper:
|
|
||||||
```nix
|
|
||||||
{ pkgs, ... }:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
```
|
|
||||||
|
|
||||||
3.5. **Stage the package**: `git add packages/<package-name>/`
|
|
||||||
Blueprint discovers packages from the git index, not the working directory.
|
|
||||||
Without this step, the package won't appear in flake outputs.
|
|
||||||
|
|
||||||
4. **Test the package**:
|
|
||||||
```bash
|
|
||||||
nix build .#<package-name>
|
|
||||||
nix run .#<package-name>
|
|
||||||
```
|
|
||||||
|
|
||||||
5. **Update README.md** to document the new package in the Available Packages table
|
|
||||||
|
|
||||||
6. **Set appropriate metadata**:
|
|
||||||
- `meta.description` - Required, shown in package listings
|
|
||||||
- `meta.mainProgram` - Set for packages providing a CLI executable
|
|
||||||
- `meta.passthru.category` - Optional, used for organization (e.g., "AI Coding Agents")
|
|
||||||
- `meta.passthru.hideFromDocs` - Set to `true` to exclude from documentation
|
|
||||||
|
|
||||||
## Common Tasks
|
|
||||||
|
|
||||||
### Updating a Package Version
|
|
||||||
|
|
||||||
1. Update `version` in `package.nix`
|
|
||||||
2. Update `src.hash` (use `nix-prefetch-github` or let Nix tell you the correct hash)
|
|
||||||
3. Update `cargoHash` for Rust packages (build will fail and tell you the correct hash)
|
|
||||||
4. Test: `nix build .#<package-name>`
|
|
||||||
5. Update README if needed
|
|
||||||
|
|
||||||
### Testing Changes
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Build specific package
|
|
||||||
nix build .#mcp-gateway
|
|
||||||
|
|
||||||
# Build all packages for current system
|
|
||||||
nix build .#packages
|
|
||||||
|
|
||||||
# Enter dev shell
|
|
||||||
nix develop
|
|
||||||
|
|
||||||
# Check formatting
|
|
||||||
nix flake check
|
|
||||||
```
|
|
||||||
|
|
||||||
### Working with Overlays
|
|
||||||
|
|
||||||
When modifying overlay behavior:
|
|
||||||
|
|
||||||
- **`overlays/default.nix`**: Receives `packages` from blueprint outputs, maps them to `final.stdenv.hostPlatform.system`
|
|
||||||
- **`overlays/shared-nixpkgs.nix`**: Receives `mkPackagesFor`, uses it to build against consumer's `final`
|
|
||||||
|
|
||||||
## Important Notes
|
|
||||||
|
|
||||||
### Do's
|
|
||||||
|
|
||||||
- ✅ Use `pkgs.callPackage` pattern for package definitions
|
|
||||||
- ✅ Set proper `meta` attributes (description, license, homepage)
|
|
||||||
- ✅ Test packages with `nix build` before committing
|
|
||||||
- ✅ Use `passthru.category` for organizational grouping
|
|
||||||
- ✅ Follow Nixpkgs conventions for package naming and structure
|
|
||||||
|
|
||||||
### Don'ts
|
|
||||||
|
|
||||||
- ❌ Don't modify `flake.lock` manually - use `nix flake update`
|
|
||||||
- ❌ Don't hardcode system-specific paths or assumptions
|
|
||||||
- ❌ Don't forget to set `meta.mainProgram` for CLI tools
|
|
||||||
- ❌ Don't use `with pkgs;` at top level (can cause scope issues)
|
|
||||||
- ❌ Don't commit packages that don't build
|
|
||||||
|
|
||||||
## Debugging Tips
|
|
||||||
|
|
||||||
### Package Doesn't Build
|
|
||||||
|
|
||||||
1. Check the error message carefully
|
|
||||||
2. Verify all dependencies are listed
|
|
||||||
3. Check if the source hash is correct
|
|
||||||
4. For Rust packages, verify `cargoHash` matches
|
|
||||||
|
|
||||||
### Overlay Not Working
|
|
||||||
|
|
||||||
1. Verify the overlay is correctly imported
|
|
||||||
2. Check if the package exists in `packages` output
|
|
||||||
3. For `shared-nixpkgs`, ensure `mkPackagesFor` is available
|
|
||||||
|
|
||||||
### Binary Cache Issues
|
|
||||||
|
|
||||||
- The `default` overlay is more likely to get cache hits
|
|
||||||
- The `shared-nixpkgs` overlay builds from source unless nixpkgs revisions match
|
|
||||||
|
|
||||||
## Resources
|
|
||||||
|
|
||||||
- [Nixpkgs Manual](https://nixos.org/manual/nixpkgs/stable/)
|
|
||||||
- [Blueprint Documentation](https://github.com/numtide/blueprint)
|
|
||||||
- [Nix Flake Patterns](https://github.com/NixOS/flake-patterns)
|
|
||||||
- [Rust in Nixpkgs](https://nixos.org/manual/nixpkgs/stable/#rust)
|
|
||||||
|
|
||||||
## Updating Packages
|
|
||||||
|
|
||||||
Use [nix-update](https://github.com/Mic92/nix-update) to bump versions and update hashes:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Update a package to the latest version
|
|
||||||
nix-update <package-name>
|
|
||||||
|
|
||||||
# Update to a specific version
|
|
||||||
nix-update <package-name> --version <version>
|
|
||||||
|
|
||||||
# Update a package pinned to a commit hash (e.g. skillsmcp)
|
|
||||||
nix-update <package-name> --version=branch=main
|
|
||||||
```
|
|
||||||
|
|
||||||
After updating, always test the build:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nix build .#<package-name>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Package-Specific Notes
|
|
||||||
|
|
||||||
- **mcp-gateway**: Standard Rust package, `nix-update` handles version + cargoHash
|
|
||||||
- **skillsmcp**: Pinned to a commit hash; use `--version=branch=main` or specify the target commit with `--commit`
|
|
||||||
|
|
||||||
## Git Workflow
|
|
||||||
|
|
||||||
### Committing Completed Work
|
|
||||||
|
|
||||||
Every completed job or feature must be committed to the git repository.
|
|
||||||
|
|
||||||
When preparing git commits, always use the `conventional-commit` skill to create proper commit messages following conventional commit conventions.
|
|
||||||
|
|
||||||
This ensures:
|
|
||||||
- Clean git history with proper commit message formatting
|
|
||||||
- No work is left uncommitted
|
|
||||||
- Consistent commit message style across the project
|
|
||||||
|
|
||||||
### Advanced Git Operations
|
|
||||||
|
|
||||||
For advanced Git workflows (rebasing, cherry-picking, bisect, worktrees, reflog, history recovery), use the `git-advanced-workflows` skill.
|
|
||||||
|
|
||||||
This skill provides:
|
|
||||||
- Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog
|
|
||||||
- Maintain clean history and recover from any situation
|
|
||||||
- Manage complex Git histories, collaborate on feature branches, or troubleshoot repository issues
|
|
||||||
|
|
||||||
## Example Workflow: Adding a New Package
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# 0. Claim the task via beads (MANDATORY before any work)
|
|
||||||
bd ready # Find available work
|
|
||||||
bd show <id> # Review task details
|
|
||||||
bd update <id> --claim # Claim the task
|
|
||||||
|
|
||||||
# 1. Create package directory
|
|
||||||
mkdir -p packages/my-tool
|
|
||||||
|
|
||||||
# 2. Create package.nix (use appropriate template above)
|
|
||||||
|
|
||||||
# 3. Create default.nix wrapper
|
|
||||||
cat > packages/my-tool/default.nix << 'EOF'
|
|
||||||
{ pkgs, ... }:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# 3.5. Stage for Blueprint discovery
|
|
||||||
git add packages/my-tool/
|
|
||||||
|
|
||||||
# 4. Test build
|
|
||||||
nix build .#my-tool
|
|
||||||
|
|
||||||
# 5. If build fails, fix issues, then retry
|
|
||||||
|
|
||||||
# 6. Update README.md with new package info
|
|
||||||
|
|
||||||
# 7. Commit changes using conventional-commit skill
|
|
||||||
git add packages/my-tool README.md
|
|
||||||
# Then invoke: skill: "conventional-commit"
|
|
||||||
|
|
||||||
# 8. Close the task via beads
|
|
||||||
bd close <id> # Mark task as complete
|
|
||||||
```
|
|
||||||
|
|
||||||
<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->
|
|
||||||
## Beads Issue Tracker
|
|
||||||
|
|
||||||
This project uses **bd (beads)** for issue tracking. Run `bd prime` to see full workflow context and commands.
|
|
||||||
|
|
||||||
### Quick Reference
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bd prime # ALWAYS run first — get full context and command reference
|
|
||||||
bd ready # Find available work
|
|
||||||
bd show <id> # View issue details
|
|
||||||
bd update <id> --claim # Claim work (do this BEFORE starting any task)
|
|
||||||
bd close <id> # Complete work (do this AFTER pushing changes)
|
|
||||||
bd remember # Save persistent knowledge (use instead of MEMORY.md files)
|
|
||||||
```
|
|
||||||
|
|
||||||
### Rules
|
|
||||||
|
|
||||||
- **Use `bd` for ALL task tracking** — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
|
|
||||||
- **Run `bd prime` BEFORE starting any work** — this provides session context and close protocol
|
|
||||||
- **Run `bd remember` for persistent knowledge** — do NOT use MEMORY.md files
|
|
||||||
- **If you forgot to claim** — stop working and claim via `bd` immediately
|
|
||||||
|
|
||||||
## Session Completion
|
|
||||||
|
|
||||||
**When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
|
|
||||||
|
|
||||||
**MANDATORY WORKFLOW:**
|
|
||||||
|
|
||||||
1. **File issues for remaining work** - Create issues for anything that needs follow-up
|
|
||||||
2. **Run quality gates** (if code changed) - Tests, linters, builds
|
|
||||||
3. **Update issue status** - Close finished work, update in-progress items
|
|
||||||
4. **PUSH TO REMOTE** - This is MANDATORY:
|
|
||||||
```bash
|
|
||||||
git pull --rebase
|
|
||||||
bd dolt push
|
|
||||||
git push
|
|
||||||
git status # MUST show "up to date with origin"
|
|
||||||
```
|
|
||||||
Note: no Dolt remote is configured for this workspace, so `bd dolt push`
|
|
||||||
prints `No remote is configured — skipping.` and exits. That is expected,
|
|
||||||
NOT a failure. Beads state is versioned locally in `.beads/` and synced to
|
|
||||||
the shared repository via `git push` — the `git status` check above is the
|
|
||||||
real completion gate.
|
|
||||||
5. **Clean up** - Clear stashes, prune remote branches
|
|
||||||
6. **Verify** - All changes committed AND pushed
|
|
||||||
7. **Hand off** - Provide context for next session
|
|
||||||
|
|
||||||
**CRITICAL RULES:**
|
|
||||||
- Work is NOT complete until `git push` succeeds
|
|
||||||
- NEVER stop before pushing - that leaves work stranded locally
|
|
||||||
- NEVER say "ready to push when you are" - YOU must push
|
|
||||||
- If push fails, resolve and retry until it succeeds
|
|
||||||
<!-- END BEADS INTEGRATION -->
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
# Project Instructions for AI Agents
|
|
||||||
|
|
||||||
This file provides instructions and context for AI coding agents working on this project.
|
|
||||||
|
|
||||||
<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->
|
|
||||||
## Beads Issue Tracker
|
|
||||||
|
|
||||||
This project uses **bd (beads)** for issue tracking. Run `bd prime` to see full workflow context and commands.
|
|
||||||
|
|
||||||
### Quick Reference
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bd ready # Find available work
|
|
||||||
bd show <id> # View issue details
|
|
||||||
bd update <id> --claim # Claim work
|
|
||||||
bd close <id> # Complete work
|
|
||||||
```
|
|
||||||
|
|
||||||
### Rules
|
|
||||||
|
|
||||||
- Use `bd` for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
|
|
||||||
- Run `bd prime` for detailed command reference and session close protocol
|
|
||||||
- Use `bd remember` for persistent knowledge — do NOT use MEMORY.md files
|
|
||||||
|
|
||||||
## Session Completion
|
|
||||||
|
|
||||||
**When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
|
|
||||||
|
|
||||||
**MANDATORY WORKFLOW:**
|
|
||||||
|
|
||||||
1. **File issues for remaining work** - Create issues for anything that needs follow-up
|
|
||||||
2. **Run quality gates** (if code changed) - Tests, linters, builds
|
|
||||||
3. **Update issue status** - Close finished work, update in-progress items
|
|
||||||
4. **PUSH TO REMOTE** - This is MANDATORY:
|
|
||||||
```bash
|
|
||||||
git pull --rebase
|
|
||||||
bd dolt push
|
|
||||||
git push
|
|
||||||
git status # MUST show "up to date with origin"
|
|
||||||
```
|
|
||||||
5. **Clean up** - Clear stashes, prune remote branches
|
|
||||||
6. **Verify** - All changes committed AND pushed
|
|
||||||
7. **Hand off** - Provide context for next session
|
|
||||||
|
|
||||||
**CRITICAL RULES:**
|
|
||||||
- Work is NOT complete until `git push` succeeds
|
|
||||||
- NEVER stop before pushing - that leaves work stranded locally
|
|
||||||
- NEVER say "ready to push when you are" - YOU must push
|
|
||||||
- If push fails, resolve and retry until it succeeds
|
|
||||||
<!-- END BEADS INTEGRATION -->
|
|
||||||
|
|
||||||
|
|
||||||
## Build & Test
|
|
||||||
|
|
||||||
_Add your build and test commands here_
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Example:
|
|
||||||
# npm install
|
|
||||||
# npm test
|
|
||||||
```
|
|
||||||
|
|
||||||
## Architecture Overview
|
|
||||||
|
|
||||||
_Add a brief overview of your project architecture_
|
|
||||||
|
|
||||||
## Conventions & Patterns
|
|
||||||
|
|
||||||
_Add your project-specific conventions here_
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
This repository is being used as a Dolt remote.
|
||||||
|
|
||||||
|
ref=refs/dolt/data
|
||||||
|
|
||||||
|
head=d617fee02881f9fcdd34e80762b9052ba12a55b6
|
||||||
|
|
||||||
|
timestamp=2026-10-04T16:54:24Z
|
||||||
@@ -1,232 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 29 June 2007
|
|
||||||
|
|
||||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
|
||||||
|
|
||||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
|
||||||
|
|
||||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
|
||||||
|
|
||||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
“This License” refers to version 3 of the GNU General Public License.
|
|
||||||
|
|
||||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
|
||||||
|
|
||||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
|
||||||
|
|
||||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
|
||||||
|
|
||||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
|
||||||
|
|
||||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
|
||||||
|
|
||||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
|
||||||
|
|
||||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
|
||||||
|
|
||||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
|
||||||
|
|
||||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
|
||||||
|
|
||||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Use with the GNU Affero General Public License.
|
|
||||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
nix-overlay
|
|
||||||
Copyright (C) 2026 alex
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
|
||||||
|
|
||||||
nix-overlay Copyright (C) 2026 alex
|
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
# millerson.name Nix Overlay
|
|
||||||
|
|
||||||
A custom Nix overlay and flake providing additional packages not found in upstream nixpkgs, built using [numtide/blueprint](https://github.com/numtide/blueprint) for streamlined flake development.
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- **Custom packages** - Additional software packaged for Nix
|
|
||||||
- **Two overlay strategies** - Choose between binary-cache-friendly or dependency-sharing overlays
|
|
||||||
- **Blueprint-based** - Uses modern Nix flake patterns with `numtide/blueprint`
|
|
||||||
|
|
||||||
## Available Packages
|
|
||||||
|
|
||||||
| Package | Description | Category |
|
|
||||||
|---------|-------------|----------|
|
|
||||||
| `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 |
|
|
||||||
| `aionui` | Free, open-source, Cowork app with AI Agents | AI Coding Agents |
|
|
||||||
| `container-use` | Containerized environments for coding agents | AI Coding Agents |
|
|
||||||
| `desloppify` | Multi-language codebase health scanner and technical debt tracker for AI agents | AI Coding Agents |
|
|
||||||
| `ds4` | DeepSeek 4 Flash and PRO local inference engine for ROCm (Strix Halo) | AI Inference |
|
|
||||||
| `freebuff` | The world's strongest free coding agent | AI Coding Agents |
|
|
||||||
| `graphify` | Turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph | AI Coding Agents |
|
|
||||||
| `haivemind` | Multi-model AI consensus, aggregation, and fusion runner for popular AI CLIs | AI Coding Agents |
|
|
||||||
| `hipengine` | ROCm-native local LLM inference engine with torch-free runtime for AMD RDNA GPUs | AI Inference |
|
|
||||||
| `mcp-gateway` | Universal Model Context Protocol gateway that sits between AI client and MCP tools/servers | MCP Servers |
|
|
||||||
| `nftables-analyzer` | Analyze nftables firewall rules and evaluate traffic queries | Networking |
|
|
||||||
| `nftablesbuilder` | Web interface to manage nftables rules with drag-and-drop rule creation | Networking |
|
|
||||||
| `skillsmcp` | MCP server that exposes Agent Skills to AI agents via the Model Context Protocol | MCP Servers |
|
|
||||||
| `kubernetes-mcp-server` | Model Context Protocol (MCP) server for Kubernetes and OpenShift | MCP Servers |
|
|
||||||
| `loop` | Corporate messenger for your team | Communication |
|
|
||||||
| `radar` | Modern Kubernetes visibility — topology, event timeline, service traffic, resource browsing, Helm management, and GitOps support | Kubernetes |
|
|
||||||
| `omniroute` | Unified AI router with 160+ providers, auto fallback, MCP/A2A, OpenAI-compatible APIs | AI LLM Gateway |
|
|
||||||
| `relay-free-llm` | RESTful API to route user prompts to various AI model providers with automatic failover and intent-based routing | AI LLM Gateway |
|
|
||||||
| `stakpak` | DevOps AI agent that generates infrastructure code, debugs Kubernetes, configures CI/CD, and automates deployments | AI Agents |
|
|
||||||
| `traycer` | Open-source AI orchestration app for agentic coding | AI Coding Agents |
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
### As a Flake
|
|
||||||
|
|
||||||
Add to your `flake.nix` inputs:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
inputs.millerson-nix-overlay.url = "git+https://git.millerson.name/alex/millerson-overlay.nix.git";
|
|
||||||
```
|
|
||||||
|
|
||||||
Then use in your outputs:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
outputs = { nixpkgs, millerson-nix-overlay, ... }: {
|
|
||||||
nixosConfigurations.your-host = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
millerson-nix-overlay.nixosModules.default
|
|
||||||
# ... your other modules
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
### As an Overlay
|
|
||||||
|
|
||||||
#### Option 1: Default Overlay (Binary Cache Friendly)
|
|
||||||
|
|
||||||
Uses the packages built against this flake's nixpkgs revision. Binary cache hits work best when using the same nixpkgs revision.
|
|
||||||
|
|
||||||
```nix
|
|
||||||
nixpkgs.overlays = [ millerson-nix-overlay.overlays.default ];
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Option 2: Shared Nixpkgs Overlay (Dependency Sharing)
|
|
||||||
|
|
||||||
Builds packages against your system's nixpkgs, sharing dependencies with the rest of your system. No second nixpkgs evaluation, but binary cache only hits when your nixpkgs revision matches ours.
|
|
||||||
|
|
||||||
```nix
|
|
||||||
nixpkgs.overlays = [ millerson-nix-overlay.overlays.shared-nixpkgs ];
|
|
||||||
```
|
|
||||||
|
|
||||||
### Installing Packages
|
|
||||||
|
|
||||||
With flakes enabled:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Try a package
|
|
||||||
nix run git+https://git.millerson.name/alex/millerson-overlay.nix.git#mcp-gateway
|
|
||||||
|
|
||||||
# Install permanently
|
|
||||||
nix profile install git+https://git.millerson.name/alex/millerson-overlay.nix.git#mcp-gateway
|
|
||||||
```
|
|
||||||
|
|
||||||
### nftablesbuilder Runtime Notes
|
|
||||||
|
|
||||||
`nftablesbuilder` is a web interface for managing nftables. It consists of a
|
|
||||||
root-launcher (`nftablesbuilder`) that spawns the unprivileged `webserver`
|
|
||||||
binary and pipes encrypted commands between it and the `nft` binary.
|
|
||||||
|
|
||||||
Before running it you must:
|
|
||||||
|
|
||||||
1. Copy the settings template to `/etc/nftablesbuilder` (the only fixed path):
|
|
||||||
```bash
|
|
||||||
nix build .#nftablesbuilder
|
|
||||||
cp result/share/nftablesbuilder/settings.example /etc/nftablesbuilder
|
|
||||||
```
|
|
||||||
Adjust paths inside (html, webserver, nft, savepath, TLS files).
|
|
||||||
2. Create a TLS key/certificate pair at the paths referenced by
|
|
||||||
`tlskey`/`tlscert` (e.g. `openssl req -x509 -newkey rsa:2048 -nodes ...`).
|
|
||||||
3. Run the launcher as root (it needs to write `/etc/nftables.conf` and run
|
|
||||||
`nft`); the web interface listens on `https://<server>:1969`.
|
|
||||||
|
|
||||||
Note: upstream publishes the GUI only as a prebuilt tarball on
|
|
||||||
nftablesbuilder.eu (served with a self-signed certificate, hence the
|
|
||||||
`curlOpts = "-k"` in the derivation); the source repository is missing the
|
|
||||||
`settings` crate, which this overlay patches in.
|
|
||||||
|
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
- Nix with flakes enabled
|
|
||||||
- [treefmt-nix](https://github.com/numtide/treefmt-nix) for formatting (optional)
|
|
||||||
|
|
||||||
### Building Packages
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Build all packages for current system
|
|
||||||
nix build .#packages
|
|
||||||
|
|
||||||
# Build specific package
|
|
||||||
nix build .#mcp-gateway
|
|
||||||
|
|
||||||
# Enter development shell
|
|
||||||
nix develop
|
|
||||||
```
|
|
||||||
|
|
||||||
### Project Structure
|
|
||||||
|
|
||||||
```
|
|
||||||
nix-overlay/
|
|
||||||
├── flake.nix # Flake definition
|
|
||||||
├── treefmt.toml # Code formatting configuration (nixfmt)
|
|
||||||
├── overlays/ # Overlay implementations
|
|
||||||
│ ├── default.nix # Binary-cache-friendly overlay
|
|
||||||
│ └── shared-nixpkgs.nix # Dependency-sharing overlay
|
|
||||||
├── packages/ # Package definitions
|
|
||||||
│ ├── awg-tool/ # AmneziaWG parameter generation and SSH deployment CLI
|
|
||||||
│ ├── aionui/ # AionUi - AI Cowork desktop app
|
|
||||||
│ ├── container-use/ # Containerized environments for coding agents
|
|
||||||
│ ├── default/ # Meta-package listing all packages
|
|
||||||
│ ├── desloppify/ # Codebase health scanner for AI agents
|
|
||||||
│ ├── ds4/ # DeepSeek V4 Flash/PRO inference engine (ROCm)
|
|
||||||
│ ├── flake-inputs/ # Utility for caching flake inputs
|
|
||||||
│ ├── freebuff/ # Free coding agent (Codebuff)
|
|
||||||
│ ├── graphify/ # Knowledge graph generator for code folders
|
|
||||||
│ ├── haivemind/ # Multi-model AI consensus runner
|
|
||||||
│ ├── hipengine/ # ROCm-native LLM inference engine for AMD GPUs
|
|
||||||
│ ├── kubernetes-mcp-server/ # MCP server for Kubernetes and OpenShift
|
|
||||||
│ ├── loop/ # Corporate messenger for your team
|
|
||||||
│ ├── mcp-gateway/ # MCP protocol gateway
|
|
||||||
│ ├── omniroute/ # Unified AI router with 160+ providers
|
|
||||||
│ ├── radar/ # Kubernetes UI (topology, timeline, Helm, GitOps)
|
|
||||||
│ ├── relay-free-llm/ # AI model provider routing gateway
|
|
||||||
│ ├── skillsmcp/ # MCP server for Agent Skills
|
|
||||||
│ ├── stakpak/ # DevOps AI agent for infrastructure automation
|
|
||||||
│ └── traycer/ # AI orchestration desktop app (agentic coding)
|
|
||||||
└── README.md
|
|
||||||
```
|
|
||||||
|
|
||||||
### Adding New Packages
|
|
||||||
|
|
||||||
1. Create a new directory under `packages/<package-name>/`
|
|
||||||
2. Add a `package.nix` with the package definition
|
|
||||||
3. Create a `default.nix` that imports `package.nix` with proper arguments
|
|
||||||
4. The package will be automatically picked up by blueprint
|
|
||||||
|
|
||||||
Example structure:
|
|
||||||
|
|
||||||
```
|
|
||||||
packages/my-package/
|
|
||||||
├── default.nix # Import wrapper
|
|
||||||
└── package.nix # Actual package definition
|
|
||||||
```
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
See [LICENSE](LICENSE) file for details.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
||||||
Generated
-157
@@ -1,157 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"blueprint": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776249299,
|
|
||||||
"narHash": "sha256-Dt9t1TGRmJFc0xVYhttNBD6QsAgHOHCArqGa0AyjrJY=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"rev": "56131e8628f173d24a27f6d27c0215eff57e40dd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bun2nix": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-parts": [
|
|
||||||
"flake-parts"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"systems"
|
|
||||||
],
|
|
||||||
"treefmt-nix": [
|
|
||||||
"treefmt-nix"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1777369708,
|
|
||||||
"narHash": "sha256-1xW7cRZNsFNPQD+cE0fwnLVStnDth0HSoASEIFeT7uI=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "bun2nix",
|
|
||||||
"rev": "e659e1cc4b8e1b21d0aa85f1c481f9db61ecfa98",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "staging-2.1.0",
|
|
||||||
"repo": "bun2nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1777988971,
|
|
||||||
"narHash": "sha256-qIoWPDs+0/8JecyYgE3gpKQxW/4bLW/gp45vow9ioCQ=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "0678d8986be1661af6bb555f3489f2fdfc31f6ff",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1777954456,
|
|
||||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-latest": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1785967620,
|
|
||||||
"narHash": "sha256-IItrdb7Puk05RqOBWZYFC5X6Wl1sJmCfh5MWVHw5iMM=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "b7c2ada94fe99c15b0dbcf4d11fd7850b957a436",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"blueprint": "blueprint",
|
|
||||||
"bun2nix": "bun2nix",
|
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"nixpkgs-latest": "nixpkgs-latest",
|
|
||||||
"systems": "systems",
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775636079,
|
|
||||||
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
description = "Various packages for Nix";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
# Newer nixpkgs whose toolchains are required by some packages:
|
|
||||||
# rustc >= 1.95 (mcp-gateway >= 3.4.0), go >= 1.26.3 (kubernetes-mcp-server >= 0.0.66).
|
|
||||||
nixpkgs-latest.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
systems.url = "github:nix-systems/default";
|
|
||||||
blueprint = {
|
|
||||||
url = "github:numtide/blueprint";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.systems.follows = "systems";
|
|
||||||
};
|
|
||||||
treefmt-nix = {
|
|
||||||
url = "github:numtide/treefmt-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
flake-parts = {
|
|
||||||
url = "github:hercules-ci/flake-parts";
|
|
||||||
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
bun2nix = {
|
|
||||||
# TODO(#4001): drop the branch pin once catalog support
|
|
||||||
# (nix-community/bun2nix#86) reaches the default branch.
|
|
||||||
url = "github:nix-community/bun2nix/staging-2.1.0";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.systems.follows = "systems";
|
|
||||||
inputs.treefmt-nix.follows = "treefmt-nix";
|
|
||||||
inputs.flake-parts.follows = "flake-parts";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs =
|
|
||||||
{ self, ... }@inputs:
|
|
||||||
let
|
|
||||||
blueprintOutputs = inputs.blueprint {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
blueprintOutputs
|
|
||||||
// {
|
|
||||||
overlays = {
|
|
||||||
default = import ./overlays {
|
|
||||||
inherit (blueprintOutputs) packages;
|
|
||||||
};
|
|
||||||
shared-nixpkgs = import ./overlays/shared-nixpkgs.nix {
|
|
||||||
inherit (blueprintOutputs) mkPackagesFor;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixosModules.default = {
|
|
||||||
nixpkgs.overlays = [ self.overlays.default ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
packages,
|
|
||||||
}:
|
|
||||||
final: _prev: {
|
|
||||||
millerson-nix-overlay =
|
|
||||||
packages.${final.stdenv.hostPlatform.system}
|
|
||||||
or (final.lib.warn "millerson-overlay: no packages for system ${final.stdenv.hostPlatform.system}"
|
|
||||||
{ }
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
mkPackagesFor,
|
|
||||||
}:
|
|
||||||
# Builds the packages/ tree against the consumer's `final`, so deps are
|
|
||||||
# shared with the rest of their system and no second nixpkgs is
|
|
||||||
# evaluated. Trade-off vs overlays.default: the binary cache only hits
|
|
||||||
# when the consumer's nixpkgs revision matches ours.
|
|
||||||
final: _prev: {
|
|
||||||
millerson-nix-overlay = mkPackagesFor final;
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
|
||||||
bun,
|
|
||||||
nodejs,
|
|
||||||
node-gyp,
|
|
||||||
electron,
|
|
||||||
autoPatchelfHook,
|
|
||||||
makeWrapper,
|
|
||||||
copyDesktopItems,
|
|
||||||
imagemagick,
|
|
||||||
python3,
|
|
||||||
cacert,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "2.1.50";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "iOfficeAI";
|
|
||||||
repo = "AionUi";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-NsKygGMRN5pQXyKaehVW/sC2tyd4KmrYmiQrr5ZGeNY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# FOD 1: All dependencies (dev + prod) for the build phase.
|
|
||||||
bunBuildDeps = stdenv.mkDerivation {
|
|
||||||
name = "aionui-build-deps-${version}";
|
|
||||||
inherit src;
|
|
||||||
nativeBuildInputs = [
|
|
||||||
bun
|
|
||||||
cacert
|
|
||||||
];
|
|
||||||
outputHashAlgo = "sha256";
|
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = "sha256-EeDapBXeiU/70N92ka1dmrKUMEDN65FON8VPVPsBfro=";
|
|
||||||
dontPatchShebangs = true;
|
|
||||||
dontFixup = true;
|
|
||||||
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
bun install --frozen-lockfile --ignore-scripts
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -r node_modules $out/
|
|
||||||
cp -r packages $out/
|
|
||||||
cp tsconfig.json $out/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# FOD 2: Production-only dependencies for the runtime output.
|
|
||||||
# Mirrors the Dockerfile's `bun install --production --ignore-scripts`.
|
|
||||||
bunProdDeps = stdenv.mkDerivation {
|
|
||||||
name = "aionui-prod-deps-${version}";
|
|
||||||
inherit src;
|
|
||||||
nativeBuildInputs = [
|
|
||||||
bun
|
|
||||||
cacert
|
|
||||||
];
|
|
||||||
outputHashAlgo = "sha256";
|
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = "sha256-L2UV+OsHfoQTsc1s+tBrJZtnoiCcB2mlnsAHbplTggc=";
|
|
||||||
dontPatchShebangs = true;
|
|
||||||
dontFixup = true;
|
|
||||||
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
bun install --frozen-lockfile --production --ignore-scripts
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -r node_modules $out/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "aionui";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
bun
|
|
||||||
nodejs
|
|
||||||
node-gyp
|
|
||||||
autoPatchelfHook
|
|
||||||
makeWrapper
|
|
||||||
copyDesktopItems
|
|
||||||
imagemagick
|
|
||||||
python3
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
export HOME=$TMPDIR
|
|
||||||
|
|
||||||
# Use the full dependency set for the build
|
|
||||||
ln -sf ${bunBuildDeps}/node_modules .
|
|
||||||
|
|
||||||
# ── Build better-sqlite3 native addon ──────────────────────
|
|
||||||
echo "Building better-sqlite3 from source..."
|
|
||||||
BT3_SRC=$TMPDIR/bts3-src
|
|
||||||
BT3_OUT=$TMPDIR/bts3-out
|
|
||||||
mkdir -p "$BT3_SRC" "$BT3_OUT"
|
|
||||||
cp -rL node_modules/better-sqlite3/* "$BT3_SRC/"
|
|
||||||
chmod -R u+w "$BT3_SRC"
|
|
||||||
(
|
|
||||||
cd "$BT3_SRC"
|
|
||||||
export npm_config_nodedir=${nodejs}
|
|
||||||
node-gyp rebuild
|
|
||||||
mkdir -p "$BT3_OUT/build/Release"
|
|
||||||
cp build/Release/better_sqlite3.node "$BT3_OUT/build/Release/" 2>/dev/null || true
|
|
||||||
)
|
|
||||||
|
|
||||||
# ── electron-vite build ───────────────────────────────────
|
|
||||||
echo "Running electron-vite build..."
|
|
||||||
${nodejs}/bin/node node_modules/.bin/electron-vite build \
|
|
||||||
--config packages/desktop/electron.vite.config.ts
|
|
||||||
|
|
||||||
# ── Bundle MCP servers ────────────────────────────────────
|
|
||||||
echo "Building MCP servers..."
|
|
||||||
${nodejs}/bin/node scripts/build-mcp-servers.js
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out/{bin,lib/aionui}
|
|
||||||
|
|
||||||
# ── Built output ──────────────────────────────────────────
|
|
||||||
cp -r out $out/lib/aionui/
|
|
||||||
cp -r public $out/lib/aionui/
|
|
||||||
cp package.json $out/lib/aionui/
|
|
||||||
|
|
||||||
# ── Production-only node_modules (mirrors Dockerfile) ─────
|
|
||||||
cp -a ${bunProdDeps}/node_modules $out/lib/aionui/node_modules
|
|
||||||
chmod -R u+w $out/lib/aionui/node_modules
|
|
||||||
|
|
||||||
# Remove workspace symlink – @aionui/web-host is bundled by
|
|
||||||
# electron-vite (excluded from externalizeDepsPlugin), so the
|
|
||||||
# symlink to packages/web-host is not needed at runtime.
|
|
||||||
rm -f $out/lib/aionui/node_modules/@aionui/web-host
|
|
||||||
|
|
||||||
# @sentry/electron requires @sentry/node at runtime, but bun
|
|
||||||
# nests it inside .bun/ rather than hoisting to top-level.
|
|
||||||
# Electron's require() walks up from the resolved realpath
|
|
||||||
# and needs it accessible either at top-level or via the
|
|
||||||
# symlink target's node_modules. We ensure top-level access.
|
|
||||||
if [ ! -e $out/lib/aionui/node_modules/@sentry/node ]; then
|
|
||||||
SRC=$(echo $out/lib/aionui/node_modules/.bun/@sentry+node@*/node_modules/@sentry/node)
|
|
||||||
if [ -d "$SRC" ]; then
|
|
||||||
ln -sf "$(realpath --relative-to=$out/lib/aionui/node_modules/@sentry "$SRC")" \
|
|
||||||
$out/lib/aionui/node_modules/@sentry/node
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Inject compiled better-sqlite3 .node into the runtime tree
|
|
||||||
if [ -f "$TMPDIR/bts3-out/build/Release/better_sqlite3.node" ]; then
|
|
||||||
rm -rf $out/lib/aionui/node_modules/better-sqlite3
|
|
||||||
cp -rL ${bunProdDeps}/node_modules/better-sqlite3 $out/lib/aionui/node_modules/better-sqlite3 2>/dev/null || true
|
|
||||||
chmod -R u+w $out/lib/aionui/node_modules/better-sqlite3
|
|
||||||
mkdir -p $out/lib/aionui/node_modules/better-sqlite3/build/Release
|
|
||||||
cp "$TMPDIR/bts3-out/build/Release/better_sqlite3.node" \
|
|
||||||
$out/lib/aionui/node_modules/better-sqlite3/build/Release/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ── Desktop entry ─────────────────────────────────────────
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
cat > $out/share/applications/aionui.desktop << EOF
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=AionUi
|
|
||||||
Comment=Free, open-source Cowork app with AI Agents
|
|
||||||
Exec=$out/bin/aionui
|
|
||||||
Icon=aionui
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Office;Utility;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
||||||
if [ -f resources/app.png ]; then
|
|
||||||
convert resources/app.png -resize 256x256 \
|
|
||||||
$out/share/icons/hicolor/256x256/apps/aionui.png
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ── Launcher ──────────────────────────────────────────────
|
|
||||||
makeWrapper ${electron}/bin/electron $out/bin/aionui \
|
|
||||||
--add-flags "$out/lib/aionui"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontStrip = true;
|
|
||||||
autoPatchelfIgnoreMissingDeps = true;
|
|
||||||
|
|
||||||
desktopItems = [ "aionui.desktop" ];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#aionui"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Free, open-source, Cowork app with AI Agents";
|
|
||||||
homepage = "https://github.com/iOfficeAI/AionUi";
|
|
||||||
changelog = "https://github.com/iOfficeAI/AionUi/releases/tag/v${version}";
|
|
||||||
license = licenses.asl20;
|
|
||||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
||||||
mainProgram = "aionui";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
cmake,
|
|
||||||
perl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "awg-tool";
|
|
||||||
version = "0.2.2";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "Vadim-Khristenko";
|
|
||||||
repo = "awg-containers-and-tools";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-z4LG+z60uqsfkRyt7Dc8Fc5GMfpiF7G0N9PXnzTUJms=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# awg-core builds ssh2 with vendored-openssl, which compiles libssh2
|
|
||||||
# (via cmake) and OpenSSL (via perl Configure) from source.
|
|
||||||
nativeBuildInputs = [
|
|
||||||
cmake
|
|
||||||
perl
|
|
||||||
];
|
|
||||||
|
|
||||||
cargoHash = "sha256-Nb5tmwvhzKAldHai7yxtYapjbZmai0ujBX9c6nRGZk0=";
|
|
||||||
|
|
||||||
# Upstream tests exercise Docker/SSH targets; unit tests are already
|
|
||||||
# covered by the upstream CI before a release is cut.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "Networking";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#awg-tool"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "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";
|
|
||||||
homepage = "https://github.com/Vadim-Khristenko/awg-containers-and-tools";
|
|
||||||
changelog = "https://github.com/Vadim-Khristenko/awg-containers-and-tools/releases/tag/v${version}";
|
|
||||||
license = licenses.mit;
|
|
||||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
||||||
mainProgram = "awg-tool";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildGoModule,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "container-use";
|
|
||||||
version = "0.4.2";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "dagger";
|
|
||||||
repo = "container-use";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-YKgS142a9SL1ZEjS+VArxwUzQX961zwlGuHW43AMxQA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
vendorHash = "sha256-M7YhEm9Gmjv2gxB2r7AS5JLLThEkvtJfLBrB+cvsN5c=";
|
|
||||||
|
|
||||||
env.CGO_ENABLED = 0;
|
|
||||||
|
|
||||||
subPackages = [ "cmd/container-use" ];
|
|
||||||
|
|
||||||
# Tests require network access to container registries and a running
|
|
||||||
# Docker engine, neither of which are available in the Nix sandbox
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
ln -s $out/bin/container-use $out/bin/cu
|
|
||||||
'';
|
|
||||||
|
|
||||||
ldflags = [
|
|
||||||
"-s -w -X main.version=v${version}"
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#container-use"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Containerized environments for coding agents";
|
|
||||||
homepage = "https://github.com/dagger/container-use";
|
|
||||||
changelog = "https://github.com/dagger/container-use/releases/tag/v${version}";
|
|
||||||
license = lib.licenses.asl20;
|
|
||||||
mainProgram = "container-use";
|
|
||||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
perSystem,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
allPackages = perSystem.self;
|
|
||||||
|
|
||||||
# Filter to visible, runnable packages
|
|
||||||
visibleNames = builtins.filter (
|
|
||||||
name: name != "default" && !(allPackages.${name}.passthru.hideFromDocs or false)
|
|
||||||
) (builtins.attrNames allPackages);
|
|
||||||
|
|
||||||
# Build "name\tdescription" lines
|
|
||||||
packageLines = map (name: "${name}\t${allPackages.${name}.meta.description or ""}") visibleNames;
|
|
||||||
|
|
||||||
packageList = builtins.concatStringsSep "\n" packageLines;
|
|
||||||
|
|
||||||
flakeUrl = "git+https://git.millerson.name/alex/millerson-overlay.nix.git";
|
|
||||||
in
|
|
||||||
pkgs.callPackage ./package.nix { inherit packageList flakeUrl; }
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
writeShellApplication,
|
|
||||||
fzf,
|
|
||||||
nix,
|
|
||||||
util-linux,
|
|
||||||
packageList,
|
|
||||||
flakeUrl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
packageListFile = builtins.toFile "millerson-overlay-packages.tsv" packageList;
|
|
||||||
in
|
|
||||||
writeShellApplication {
|
|
||||||
name = "millerson-overlay-launcher";
|
|
||||||
|
|
||||||
runtimeInputs = [
|
|
||||||
fzf
|
|
||||||
nix
|
|
||||||
util-linux # column
|
|
||||||
];
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
# Format for fzf: "name description" (tab-aligned)
|
|
||||||
entries=$(column -t -s $'\t' < "${packageListFile}")
|
|
||||||
|
|
||||||
if [[ -z $entries ]]; then
|
|
||||||
echo "No packages found" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Let user pick with fzf
|
|
||||||
selected=$(echo "$entries" | fzf \
|
|
||||||
--header="Select an pkg to run (ESC to cancel)" \
|
|
||||||
--preview-window=hidden \
|
|
||||||
--no-multi \
|
|
||||||
--height=~40% \
|
|
||||||
--layout=reverse) || exit 0
|
|
||||||
|
|
||||||
# Extract package name (first word)
|
|
||||||
pkg_name=$(echo "$selected" | awk '{print $1}')
|
|
||||||
|
|
||||||
if [[ -z $pkg_name ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "→ Running: nix run ${flakeUrl}#$pkg_name"
|
|
||||||
exec nix run "${flakeUrl}#$pkg_name"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Interactive fzf launcher for millerson-overlay.nix packages";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
mainProgram = "millerson-overlay-launcher";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
hideFromDocs = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "desloppify";
|
|
||||||
version = "1.0";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "peteromallet";
|
|
||||||
repo = "desloppify";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-USFofGy0SUZV0oeh5x5KAWeFReD45GxlyYqpmc23NFM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
# Include all [full] optional dependencies for complete functionality.
|
|
||||||
# Upstream has no base dependencies - all features are behind optional extras.
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
tree-sitter
|
|
||||||
tree-sitter-language-pack
|
|
||||||
defusedxml
|
|
||||||
bandit
|
|
||||||
pillow
|
|
||||||
pyyaml
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "desloppify" ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#desloppify"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Multi-language codebase health scanner and technical debt tracker for AI agents";
|
|
||||||
homepage = "https://github.com/peteromallet/desloppify";
|
|
||||||
changelog = "https://github.com/peteromallet/desloppify/releases/tag/v${version}";
|
|
||||||
license = lib.licenses.unfreeRedistributable;
|
|
||||||
mainProgram = "desloppify";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
|
||||||
gnumake,
|
|
||||||
rocmPackages,
|
|
||||||
autoPatchelfHook,
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "ds4";
|
|
||||||
version = "0-unstable-2026-08-05";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "antirez";
|
|
||||||
repo = "ds4";
|
|
||||||
rev = "b0309611041655f4e45671cfd9c9886aff161406";
|
|
||||||
hash = "sha256-yBPQqX8oI9fElGiXfz72iWwIS8ZQpK4Bl9TWLZSa6JU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
gnumake
|
|
||||||
rocmPackages.hipcc
|
|
||||||
autoPatchelfHook
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
rocmPackages.clr
|
|
||||||
rocmPackages.hipblas
|
|
||||||
rocmPackages.hipblas-common
|
|
||||||
rocmPackages.hipblaslt
|
|
||||||
rocmPackages.hipcub
|
|
||||||
rocmPackages.rocblas
|
|
||||||
rocmPackages.rocprim
|
|
||||||
rocmPackages.rocwmma
|
|
||||||
];
|
|
||||||
|
|
||||||
# STRIXHALO.md: rocwmma/internal/ headers may be missing in distro packages.
|
|
||||||
# nixpkgs builds rocwmma from source so all headers (including internal/) are present.
|
|
||||||
# ROCM_ARCH defaults to gfx1151 (Strix Halo / Radeon 8060S) in the upstream Makefile.
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
make strix-halo -j"$NIX_BUILD_CORES" \
|
|
||||||
HIPCC="${rocmPackages.hipcc}/bin/hipcc" \
|
|
||||||
ROCM_CFLAGS="-O3 -ffast-math -g -fno-finite-math-only -pthread -D__HIP_PLATFORM_AMD__ -Wno-unused-command-line-argument --offload-arch=gfx1151 \
|
|
||||||
-I${rocmPackages.clr}/include \
|
|
||||||
-I${rocmPackages.hipblas}/include \
|
|
||||||
-I${rocmPackages.hipblas-common}/include \
|
|
||||||
-I${rocmPackages.hipblaslt}/include \
|
|
||||||
-I${rocmPackages.hipcub}/include \
|
|
||||||
-I${rocmPackages.rocblas}/include \
|
|
||||||
-I${rocmPackages.rocprim}/include \
|
|
||||||
-I${rocmPackages.rocwmma}/include" \
|
|
||||||
ROCM_LDLIBS="-lm -pthread \
|
|
||||||
-L${rocmPackages.hipblas}/lib -lhipblas \
|
|
||||||
-L${rocmPackages.hipblaslt}/lib -lhipblaslt \
|
|
||||||
-L${rocmPackages.rocblas}/lib -lrocblas \
|
|
||||||
-L${rocmPackages.clr}/lib -lamdhip64"
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp ds4 ds4-server ds4-bench ds4-eval ds4-agent $out/bin/
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Inference";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
"--version=branch=main"
|
|
||||||
".#ds4"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "DeepSeek 4 Flash and PRO local inference engine for ROCm (Strix Halo)";
|
|
||||||
longDescription = ''
|
|
||||||
DS4 is a self-contained local inference engine specifically built for
|
|
||||||
DeepSeek V4 Flash and PRO. It bundles a CLI, HTTP server, and native
|
|
||||||
coding agent. This package is built with the ROCm backend for AMD
|
|
||||||
Strix Halo GPUs (gfx1151, Radeon 8060S).
|
|
||||||
|
|
||||||
Runtime requirements (from STRIXHALO.md):
|
|
||||||
- User must be in 'render' and 'video' groups for /dev/kfd and DRM access
|
|
||||||
- GPU-visible memory must be increased via kernel parameters:
|
|
||||||
amd_iommu=off amdgpu.gttsize=126976 ttm.pages_limit=32505856 ttm.page_pool_size=32505856
|
|
||||||
'';
|
|
||||||
homepage = "https://github.com/antirez/ds4";
|
|
||||||
changelog = "https://github.com/antirez/ds4/commits/main";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
mainProgram = "ds4";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
# A derivation that references all flake inputs to ensure they get cached
|
|
||||||
let
|
|
||||||
inputsList = pkgs.lib.concatMapStringsSep " " (name: inputs.${name}) (builtins.attrNames inputs);
|
|
||||||
in
|
|
||||||
pkgs.runCommand "flake-inputs" { } ''
|
|
||||||
cat ${builtins.toFile "flake-inputs-list" inputsList} > $out
|
|
||||||
''
|
|
||||||
// {
|
|
||||||
passthru.hideFromDocs = true;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { glibc = pkgs.stdenv.cc.libc; }
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
stdenv,
|
|
||||||
fetchurl,
|
|
||||||
nodejs,
|
|
||||||
makeWrapper,
|
|
||||||
patchelf,
|
|
||||||
glibc,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "0.0.142";
|
|
||||||
|
|
||||||
freebuffSrc = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/freebuff/-/freebuff-${version}.tgz";
|
|
||||||
hash = "sha256-8DSNy/wJqLzp7mu2xsPBlMv69aBMIBNVva3SAaV13Tw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgTar = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/tar/-/tar-7.5.15.tgz";
|
|
||||||
hash = "sha256-hl60jJtM1W2THQyGZj8G72GEG8QvVrHvNnr7EU1liBw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgFsMinipass = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz";
|
|
||||||
hash = "sha256-esKG48zMHqiYDnniA53va7l9MYLheVHNkJTwQA7ZgjY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgChownr = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz";
|
|
||||||
hash = "sha256-TCT12qYwFCJS2oneZV998JDqR5RQqIJYl3UdeDIbE2A=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgMinipass = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz";
|
|
||||||
hash = "sha256-UqxhvnQ3VeP9yY5WAIbQ1KHix/02Qzh3kts44yLSfRI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgMinizlib = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz";
|
|
||||||
hash = "sha256-mb8uKWGBct1x8GVHN0kMaPcbx+I3nUc+OPn+8tvs4uM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgYallist = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz";
|
|
||||||
hash = "sha256-fJ1D26t8qzsxM7Dmpa8UAUSCKFMWs57J9QjvrdnrzpU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
binarySrc = fetchurl {
|
|
||||||
url = "https://github.com/CodebuffAI/codebuff-community/releases/download/freebuff-v${version}/freebuff-linux-x64.tar.gz";
|
|
||||||
hash = "sha256-SuV5djfrvRZZ59p+dUyiux+OmEMOxscuIU5/YDGWHYI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "freebuff";
|
|
||||||
version = "0.0.142";
|
|
||||||
|
|
||||||
src = freebuffSrc;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
makeWrapper
|
|
||||||
patchelf
|
|
||||||
];
|
|
||||||
|
|
||||||
dontStrip = true;
|
|
||||||
dontPatchelf = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
# Extract and patch the pre-built binary for NixOS compatibility
|
|
||||||
mkdir -p "$out/bin" /tmp/fb-engine
|
|
||||||
tar xzf "${binarySrc}" -C /tmp/fb-engine --strip-components=0
|
|
||||||
cp /tmp/fb-engine/freebuff "$out/bin/freebuff-engine"
|
|
||||||
chmod 755 "$out/bin/freebuff-engine"
|
|
||||||
|
|
||||||
patchelf \
|
|
||||||
--set-interpreter "${glibc}/lib/ld-linux-x86-64.so.2" \
|
|
||||||
--set-rpath "${glibc}/lib:" \
|
|
||||||
"$out/bin/freebuff-engine"
|
|
||||||
|
|
||||||
if [ -f /tmp/fb-engine/tree-sitter.wasm ]; then
|
|
||||||
cp /tmp/fb-engine/tree-sitter.wasm "$out/bin/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf /tmp/fb-engine
|
|
||||||
|
|
||||||
# Extract npm dependencies from pre-fetched tarballs
|
|
||||||
extractNpmPkg() {
|
|
||||||
local src="$1" target="$2"
|
|
||||||
mkdir -p "$target"
|
|
||||||
tar xzf "$src" -C "$target" --strip-components=1
|
|
||||||
}
|
|
||||||
|
|
||||||
mkdir -p "$out/lib/node_modules/tar"
|
|
||||||
mkdir -p "$out/lib/node_modules/chownr"
|
|
||||||
mkdir -p "$out/lib/node_modules/minipass"
|
|
||||||
mkdir -p "$out/lib/node_modules/minizlib"
|
|
||||||
mkdir -p "$out/lib/node_modules/yallist"
|
|
||||||
mkdir -p "$out/lib/node_modules/@isaacs/fs-minipass"
|
|
||||||
|
|
||||||
extractNpmPkg "${pkgTar}" "$out/lib/node_modules/tar"
|
|
||||||
extractNpmPkg "${pkgChownr}" "$out/lib/node_modules/chownr"
|
|
||||||
extractNpmPkg "${pkgMinipass}" "$out/lib/node_modules/minipass"
|
|
||||||
extractNpmPkg "${pkgMinizlib}" "$out/lib/node_modules/minizlib"
|
|
||||||
extractNpmPkg "${pkgYallist}" "$out/lib/node_modules/yallist"
|
|
||||||
extractNpmPkg "${pkgFsMinipass}" "$out/lib/node_modules/@isaacs/fs-minipass"
|
|
||||||
|
|
||||||
# Launcher: run the patched engine directly from nix-store
|
|
||||||
cat > "$out/bin/launcher.js" << LAUNCHER_EOF
|
|
||||||
#!/usr/bin/env node
|
|
||||||
const { spawn } = require('child_process');
|
|
||||||
const TERMINAL_RESET = '\x1b[?1049l\x1b[?1000l\x1b[?1002l\x1b[?1003l\x1b[?1006l\x1b[?2004l\x1b[?25h';
|
|
||||||
const engine = '${placeholder "out"}/bin/freebuff-engine';
|
|
||||||
|
|
||||||
function reset() {
|
|
||||||
try { if (process.stdin.isTTY && process.stdin.setRawMode) process.stdin.setRawMode(false); } catch(e){}
|
|
||||||
try { if (process.stdout.isTTY) process.stdout.write(TERMINAL_RESET); } catch(e){}
|
|
||||||
}
|
|
||||||
|
|
||||||
const child = spawn(engine, process.argv.slice(2), { stdio: 'inherit' });
|
|
||||||
child.on('exit', (code, signal) => { reset(); process.exit(signal ? 1 : code || 0); });
|
|
||||||
child.on('error', (e) => { console.error('Failed to start freebuff:', e.message); process.exit(1); });
|
|
||||||
LAUNCHER_EOF
|
|
||||||
|
|
||||||
makeWrapper "${nodejs}/bin/node" "$out/bin/freebuff" \
|
|
||||||
--set NODE_PATH "$out/lib/node_modules" \
|
|
||||||
--add-flags "$out/bin/launcher.js"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#freebuff"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "The world's strongest free coding agent";
|
|
||||||
homepage = "https://codebuff.com";
|
|
||||||
license = licenses.mit;
|
|
||||||
mainProgram = "freebuff";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "graphify";
|
|
||||||
version = "0.9.35";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "safishamsi";
|
|
||||||
repo = "graphify";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-HESowqiR5c6WaeiNj1WDSYBzrrcpZQwqaKwQxroePD8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
# Only tree-sitter grammars available in nixpkgs are included.
|
|
||||||
# Missing grammars will be downloaded by tree-sitter at runtime on demand.
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
networkx
|
|
||||||
datasketch
|
|
||||||
rapidfuzz
|
|
||||||
tree-sitter
|
|
||||||
tree-sitter-python
|
|
||||||
tree-sitter-javascript
|
|
||||||
tree-sitter-rust
|
|
||||||
tree-sitter-c-sharp
|
|
||||||
tree-sitter-sql
|
|
||||||
];
|
|
||||||
|
|
||||||
# Remove unavailable tree-sitter grammars from pyproject.toml.
|
|
||||||
# Since 0.9.35 upstream pins versions ("tree-sitter-X>=v,<v"), and GNU sed
|
|
||||||
# mishandles `"` inside bracket expressions, match the name followed by
|
|
||||||
# either `>` (versioned) or `"` (bare) via alternation. This also avoids
|
|
||||||
# prefix collisions (e.g. tree-sitter-c vs tree-sitter-c-sharp).
|
|
||||||
postPatch = ''
|
|
||||||
sed -i \
|
|
||||||
-e '/tree-sitter-typescript>\|tree-sitter-typescript"/d' \
|
|
||||||
-e '/tree-sitter-go>\|tree-sitter-go"/d' \
|
|
||||||
-e '/tree-sitter-java>\|tree-sitter-java"/d' \
|
|
||||||
-e '/tree-sitter-groovy>\|tree-sitter-groovy"/d' \
|
|
||||||
-e '/tree-sitter-c>\|tree-sitter-c"/d' \
|
|
||||||
-e '/tree-sitter-cpp>\|tree-sitter-cpp"/d' \
|
|
||||||
-e '/tree-sitter-ruby>\|tree-sitter-ruby"/d' \
|
|
||||||
-e '/tree-sitter-kotlin>\|tree-sitter-kotlin"/d' \
|
|
||||||
-e '/tree-sitter-scala>\|tree-sitter-scala"/d' \
|
|
||||||
-e '/tree-sitter-php>\|tree-sitter-php"/d' \
|
|
||||||
-e '/tree-sitter-swift>\|tree-sitter-swift"/d' \
|
|
||||||
-e '/tree-sitter-lua>\|tree-sitter-lua"/d' \
|
|
||||||
-e '/tree-sitter-zig>\|tree-sitter-zig"/d' \
|
|
||||||
-e '/tree-sitter-powershell>\|tree-sitter-powershell"/d' \
|
|
||||||
-e '/tree-sitter-elixir>\|tree-sitter-elixir"/d' \
|
|
||||||
-e '/tree-sitter-objc>\|tree-sitter-objc"/d' \
|
|
||||||
-e '/tree-sitter-julia>\|tree-sitter-julia"/d' \
|
|
||||||
-e '/tree-sitter-verilog>\|tree-sitter-verilog"/d' \
|
|
||||||
-e '/tree-sitter-fortran>\|tree-sitter-fortran"/d' \
|
|
||||||
-e '/tree-sitter-bash>\|tree-sitter-bash"/d' \
|
|
||||||
-e '/tree-sitter-json>\|tree-sitter-json"/d' \
|
|
||||||
pyproject.toml
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "graphify" ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#graphify"
|
|
||||||
"--version=branch=main"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "AI coding assistant skill - turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph";
|
|
||||||
homepage = "https://github.com/Graphify-Labs/graphify";
|
|
||||||
changelog = "https://github.com/Graphify-Labs/graphify/releases/tag/v${version}";
|
|
||||||
license = lib.licenses.asl20;
|
|
||||||
mainProgram = "graphify";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
fetchFromGitHub,
|
|
||||||
python3Packages,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "haivemind";
|
|
||||||
version = "0.1.0";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "dev-boz";
|
|
||||||
repo = "haivemind";
|
|
||||||
rev = "ce4a0437d41f57638b71a17e2ff3af524d5a1b6e";
|
|
||||||
hash = "sha256-x7NM2wHwi11i07jHTL9NgYJkzzlP+tOmJy027itRtWs=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
textual
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"haivemind"
|
|
||||||
"haivemind_tui"
|
|
||||||
"haivemind_curses"
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#haivemind"
|
|
||||||
"--version=branch=main"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Multi-model AI consensus, aggregation, and fusion runner for popular AI CLIs";
|
|
||||||
homepage = "https://github.com/dev-boz/haivemind";
|
|
||||||
changelog = "https://github.com/dev-boz/haivemind/commits/main";
|
|
||||||
license = licenses.mit;
|
|
||||||
mainProgram = "haivemind";
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "hipengine";
|
|
||||||
version = "0.3.0";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "shisa-ai";
|
|
||||||
repo = "hipEngine";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-lnYsXTxke5LLMbHOt6i2FM8IrnHCimC/va1fJL5G4PQ=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
hatchling
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
fastapi
|
|
||||||
jinja2
|
|
||||||
numpy
|
|
||||||
safetensors
|
|
||||||
tokenizers
|
|
||||||
uvicorn
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "hipengine" ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Inference";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#hipengine"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "ROCm-native local LLM inference engine with a torch-free runtime hot path for AMD RDNA GPUs";
|
|
||||||
homepage = "https://github.com/shisa-ai/hipEngine";
|
|
||||||
changelog = "https://github.com/shisa-ai/hipEngine/releases/tag/v${version}";
|
|
||||||
license = lib.licenses.agpl3Plus;
|
|
||||||
platforms = lib.platforms.linux;
|
|
||||||
# Upstream replaced the hipengine-server console script with
|
|
||||||
# a top-level `hipengine` command (e.g. `hipengine serve`).
|
|
||||||
mainProgram = "hipengine";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
# kubernetes-mcp-server >= 0.0.66 requires go >= 1.26.3, which the flake's
|
|
||||||
# pinned nixpkgs does not provide yet. Build with the newer nixpkgs-latest input.
|
|
||||||
let
|
|
||||||
latestPkgs = inputs.nixpkgs-latest.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
in
|
|
||||||
latestPkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildGoModule,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "kubernetes-mcp-server";
|
|
||||||
version = "0.0.66";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "containers";
|
|
||||||
repo = "kubernetes-mcp-server";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-vnJxSCfnpvOZJXQpKrCAW4QKt5R2PJDYQevA7O1uXZg=";
|
|
||||||
};
|
|
||||||
|
|
||||||
vendorHash = "sha256-gbqoT4X+wVOEktHm7jaAH9vHrUBrYgR8OjyFz1ljP6k=";
|
|
||||||
|
|
||||||
env.CGO_ENABLED = 0;
|
|
||||||
|
|
||||||
subPackages = [ "cmd/kubernetes-mcp-server" ];
|
|
||||||
|
|
||||||
# Tests require access to a live Kubernetes cluster
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
ldflags = [
|
|
||||||
"-s"
|
|
||||||
"-w"
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "MCP Servers";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#kubernetes-mcp-server"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Model Context Protocol (MCP) server for Kubernetes and OpenShift";
|
|
||||||
homepage = "https://github.com/containers/kubernetes-mcp-server";
|
|
||||||
changelog = "https://github.com/containers/kubernetes-mcp-server/releases/tag/v${version}";
|
|
||||||
license = licenses.asl20;
|
|
||||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
||||||
mainProgram = "kubernetes-mcp-server";
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
appimageTools,
|
|
||||||
fetchurl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "6.0.3";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://artifacts.wilix.dev/repository/loop-files/loop-${version}/loop-desktop-${version}-linux-x86_64.AppImage";
|
|
||||||
hash = "sha256-zGWKlY6XwuL0e2mDpB/1t0UnW73bhCPcg6XkBJBCEFY=";
|
|
||||||
};
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
|
||||||
pname = "loop";
|
|
||||||
inherit version src;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
appimageTools.wrapType2 {
|
|
||||||
pname = "loop";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
extraPkgs = pkgsWith: [
|
|
||||||
pkgsWith.gtk3
|
|
||||||
pkgsWith.glib
|
|
||||||
];
|
|
||||||
|
|
||||||
extraInstallCommands = ''
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
install -m 444 ${appimageContents}/loop-desktop.desktop $out/share/applications/loop.desktop
|
|
||||||
substituteInPlace $out/share/applications/loop.desktop \
|
|
||||||
--replace-fail 'Exec=AppRun %U' 'Exec=loop %U'
|
|
||||||
|
|
||||||
mkdir -p $out/share/icons/hicolor
|
|
||||||
cp -r ${appimageContents}/usr/share/icons/hicolor/* $out/share/icons/hicolor/
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "Communication";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#loop"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Corporate messenger for your team";
|
|
||||||
homepage = "https://loop.ru";
|
|
||||||
license = lib.licenses.unfree;
|
|
||||||
maintainers = [ ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
mainProgram = "loop";
|
|
||||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
# mcp-gateway >= 3.4.0 requires rustc >= 1.95, which the flake's pinned
|
|
||||||
# nixpkgs does not provide yet. Build with the newer nixpkgs-latest input.
|
|
||||||
let
|
|
||||||
latestPkgs = inputs.nixpkgs-latest.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
||||||
in
|
|
||||||
latestPkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pkg-config,
|
|
||||||
openssl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "mcp-gateway";
|
|
||||||
version = "3.4.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "MikkoParkkola";
|
|
||||||
repo = "mcp-gateway";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-shn2cv463SnegamsMu6NmfylnNaFzGJLoL2H7QhETY8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoHash = "sha256-XuOYuYapb2l7RHQIgLDfcDPtSdMDpEgti8Ud5ssuGC8=";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
openssl
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/lib/systemd/user
|
|
||||||
cat > $out/lib/systemd/user/mcp-gateway.service << EOF
|
|
||||||
[Unit]
|
|
||||||
Description=MCP Gateway
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=$out/bin/mcp-gateway --config %h/.config/mcp-gateway/gateway.yaml serve
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
EOF
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.category = "MCP Servers";
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Universal Model Context Protocol gateway that sits between AI client and MCP tools/servers";
|
|
||||||
homepage = "https://github.com/MikkoParkkola/mcp-gateway";
|
|
||||||
changelog = "https://github.com/MikkoParkkola/mcp-gateway/releases/tag/v${version}";
|
|
||||||
license = licenses.mit;
|
|
||||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
||||||
mainProgram = "mcp-gateway";
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
pname = "nftables-analyzer";
|
|
||||||
version = "0.1.0-unstable-2025-11-27";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "reinaldosaraiva";
|
|
||||||
repo = "nftables-analyzer";
|
|
||||||
rev = "5fc78d0c9ce173e3baa80a5655bcadb1b2f78493";
|
|
||||||
hash = "sha256-PlEIArUPSSOtVrdUEamZBr1YQnm+GJpl5Xxgk0tHrdw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
sourceRoot = "source/backend";
|
|
||||||
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
hatchling
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
typer
|
|
||||||
rich
|
|
||||||
pydantic
|
|
||||||
fastapi
|
|
||||||
uvicorn
|
|
||||||
python-multipart
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "nftables_analyzer" ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "Networking";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#nftables-analyzer"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Analyze nftables firewall rules and evaluate traffic queries";
|
|
||||||
homepage = "https://github.com/reinaldosaraiva/nftables-analyzer";
|
|
||||||
license = licenses.mit;
|
|
||||||
mainProgram = "nftables-analyzer";
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Generated
-2273
File diff suppressed because it is too large
Load Diff
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
fetchurl,
|
|
||||||
pkg-config,
|
|
||||||
openssl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "nftablesbuilder";
|
|
||||||
# Pinned to a commit rather than a release tag because upstream
|
|
||||||
# publishes releases only as tarballs on nftablesbuilder.eu.
|
|
||||||
version = "0.1.0-unstable-2026-01-27";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "AiseBouma";
|
|
||||||
repo = "NftablesBuilder";
|
|
||||||
rev = "f414e921c2857556cdb4d602ed832a32a6951d25";
|
|
||||||
hash = "sha256-5qwyVXLrUxOk7poVdUyi/yJUq1CYMffruvAO0ONO+cI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Upstream source is incomplete: both crates depend on a `settings`
|
|
||||||
# crate (path = "../settings") that was never committed, and the GUI
|
|
||||||
# has no build tooling (raw TSX, no package.json). This patch adds
|
|
||||||
# the missing settings crate (schema recovered from the official
|
|
||||||
# release artifacts) plus a workspace Cargo.toml.
|
|
||||||
patches = [ ./settings-workspace.patch ];
|
|
||||||
|
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
|
||||||
|
|
||||||
# Prebuilt GUI from the official release tarball, since the GUI cannot
|
|
||||||
# be built from source. Upstream serves releases with a self-signed
|
|
||||||
# TLS certificate, hence curlOpts = "-k"; the hash still pins content.
|
|
||||||
guiSrc = fetchurl {
|
|
||||||
url = "https://nftablesbuilder.eu/releases/latest/nftablesbuilder.tar.gz";
|
|
||||||
sha256 = "sha256-vHyuKVH4OtXEisWeDo+b3gHg3TzdXUSfMbaNpfQOrns=";
|
|
||||||
curlOpts = "-k";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
buildInputs = [ openssl ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
binDir=$(dirname "$(find target -type f -name nftablesbuilder -path '*/release/*' | head -1)")
|
|
||||||
install -Dm755 $binDir/nftablesbuilder $out/bin/nftablesbuilder
|
|
||||||
install -Dm755 $binDir/webserver $out/libexec/nftablesbuilder/webserver
|
|
||||||
|
|
||||||
mkdir -p $out/share/nftablesbuilder
|
|
||||||
tar -xzf $guiSrc -C $out/share/nftablesbuilder --strip-components=4 nftablesbuilder/root/opt/nftablesbuilder/html
|
|
||||||
install -Dm644 ${./settings.example} $out/share/nftablesbuilder/settings.example
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "Networking";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Web interface to manage nftables rules";
|
|
||||||
homepage = "https://github.com/AiseBouma/NftablesBuilder";
|
|
||||||
license = licenses.mit;
|
|
||||||
mainProgram = "nftablesbuilder";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +0,0 @@
|
|||||||
[connection]
|
|
||||||
port = 1969
|
|
||||||
|
|
||||||
[paths]
|
|
||||||
savepath = "/var/lib/nftablesbuilder"
|
|
||||||
htmlpath = "/run/current-system/sw/share/nftablesbuilder/html"
|
|
||||||
|
|
||||||
[files]
|
|
||||||
nft = "/run/current-system/sw/bin/nft"
|
|
||||||
test = "/tmp/nftables.conf"
|
|
||||||
conf = "/etc/nftables.conf"
|
|
||||||
webserver = "/run/current-system/sw/libexec/nftablesbuilder/webserver"
|
|
||||||
tlskey = "/var/lib/nftablesbuilder/nftables.key"
|
|
||||||
tlscert = "/var/lib/nftablesbuilder/nftables.crt"
|
|
||||||
|
|
||||||
[commands]
|
|
||||||
reload = "systemctl reload nftables"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
fetchurl,
|
|
||||||
nodejs_22,
|
|
||||||
makeBinaryWrapper,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "3.8.49";
|
|
||||||
npmTarball = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/omniroute/-/omniroute-${version}.tgz";
|
|
||||||
hash = "sha256-fcGsAxOdv1ZSwt24eHJu97lyRATKBw8rYeFvGTRhxYs=";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
buildNpmPackage (finalAttrs: {
|
|
||||||
pname = "omniroute";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "diegosouzapw";
|
|
||||||
repo = "OmniRoute";
|
|
||||||
rev = "v${finalAttrs.version}";
|
|
||||||
hash = "sha256-nRLziV4NWPoa0ev57DV7jmAvLpL/1MP1EMZO2/drrTU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nodejs = nodejs_22;
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-R0u93MLUUWC8xFgq4S0Aj/7wg4pygTKwxP/eWkWMgCw=";
|
|
||||||
|
|
||||||
# Skip Next.js build (requires network for Google Fonts).
|
|
||||||
# Pre-built dist/ is copied from the npm tarball in preConfigure.
|
|
||||||
dontNpmBuild = true;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
makeBinaryWrapper
|
|
||||||
];
|
|
||||||
|
|
||||||
npmInstallFlags = [ "--ignore-scripts" ];
|
|
||||||
|
|
||||||
npmRebuildFlags = [ "--ignore-scripts" ];
|
|
||||||
|
|
||||||
env = {
|
|
||||||
HOME = "$TMPDIR";
|
|
||||||
};
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
mkdir -p _npm_tmp
|
|
||||||
tar xzf ${npmTarball} -C _npm_tmp
|
|
||||||
cp -r _npm_tmp/package/dist .
|
|
||||||
rm -rf _npm_tmp
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out/lib/node_modules/omniroute
|
|
||||||
cp -r . $out/lib/node_modules/omniroute/
|
|
||||||
|
|
||||||
mkdir -p $out/bin
|
|
||||||
makeWrapper "${nodejs_22}/bin/node" "$out/bin/omniroute" \
|
|
||||||
--add-flags "$out/lib/node_modules/omniroute/bin/omniroute.mjs"
|
|
||||||
makeWrapper "${nodejs_22}/bin/node" "$out/bin/omniroute-reset-password" \
|
|
||||||
--add-flags "$out/lib/node_modules/omniroute/bin/reset-password.mjs"
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI LLM Gateway";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#omniroute"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Unified AI router with 160+ providers, RTK+Caveman compression, auto fallback, MCP/A2A, OpenAI-compatible APIs";
|
|
||||||
homepage = "https://github.com/diegosouzapw/OmniRoute";
|
|
||||||
changelog = "https://github.com/diegosouzapw/OmniRoute/releases/tag/v${finalAttrs.version}";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
mainProgram = "omniroute";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildGoModule,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "1.9.1";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "skyhook-io";
|
|
||||||
repo = "radar";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-VZLzmxW86yMtYILhmKswkj57KD4Z+8ILwHKiO53YMWE=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Build the frontend as a separate derivation.
|
|
||||||
# The lockfile has some workspace packages without resolved URLs,
|
|
||||||
# so we patch them in postPatch before fetching dependencies.
|
|
||||||
frontend = buildNpmPackage {
|
|
||||||
pname = "radar-frontend";
|
|
||||||
inherit version src;
|
|
||||||
sourceRoot = "source";
|
|
||||||
|
|
||||||
# Upstream lockfile ships complete resolved/integrity fields for all
|
|
||||||
# packages since v1.9.x, so no lockfile patching is needed anymore.
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-9xS5ChQ1xBix/n9N8vyBsHlHYmYXsibTK5J+X6mRgM4=";
|
|
||||||
npmDepsFetcherVersion = 2;
|
|
||||||
makeCacheWritable = true;
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
# Build the web workspace and install its output
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
cd web
|
|
||||||
HOME=$TMPDIR ../node_modules/.bin/vite build
|
|
||||||
cd ..
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
mkdir -p $out
|
|
||||||
cp -r web/dist/* $out/
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
buildGoModule {
|
|
||||||
pname = "radar";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
vendorHash = "sha256-d26tlh+Twv9GFX6NmR25Q9OpP/pUL2T4grdncQHYSg4=";
|
|
||||||
|
|
||||||
# Copy pre-built frontend assets before Go compilation for go:embed
|
|
||||||
preBuild = ''
|
|
||||||
mkdir -p internal/static/dist
|
|
||||||
cp -r ${frontend}/* internal/static/dist/
|
|
||||||
'';
|
|
||||||
|
|
||||||
env.CGO_ENABLED = 0;
|
|
||||||
|
|
||||||
ldflags = [
|
|
||||||
"-s"
|
|
||||||
"-w"
|
|
||||||
"-X main.version=v${version}"
|
|
||||||
];
|
|
||||||
|
|
||||||
subPackages = [ "cmd/explorer" ];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
ln -s $out/bin/explorer $out/bin/radar
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "Kubernetes";
|
|
||||||
inherit frontend;
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#radar"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Modern Kubernetes visibility — topology, event timeline, service traffic, resource browsing, Helm management, and GitOps support";
|
|
||||||
homepage = "https://github.com/skyhook-io/radar";
|
|
||||||
changelog = "https://github.com/skyhook-io/radar/releases/tag/v${version}";
|
|
||||||
license = licenses.asl20;
|
|
||||||
mainProgram = "radar";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
fetchurl,
|
|
||||||
makeWrapper,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
cerebras-cloud-sdk = python3Packages.buildPythonPackage rec {
|
|
||||||
pname = "cerebras-cloud-sdk";
|
|
||||||
version = "1.91.0";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://files.pythonhosted.org/packages/0c/98/767ab62618be157b5fb21bce980ad5c8ebe155e32aff38521e511054e5c3/cerebras_cloud_sdk-1.91.0.tar.gz";
|
|
||||||
hash = "sha256-b0GT/sCIkR/+gpzlaCUQ+GEgzTUyyvToVAvzO1n9t+s=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
hatchling
|
|
||||||
hatch-fancy-pypi-readme
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -i 's/hatchling==[0-9.]*/hatchling/' pyproject.toml
|
|
||||||
'';
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
|
||||||
anyio
|
|
||||||
distro
|
|
||||||
httpx
|
|
||||||
pydantic
|
|
||||||
sniffio
|
|
||||||
typing-extensions
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python SDK for Cerebras AI platform";
|
|
||||||
homepage = "https://github.com/CerebrasAI/cerebras-cloud-sdk-python";
|
|
||||||
license = lib.licenses.asl20;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyDeps = with python3Packages; [
|
|
||||||
fastapi
|
|
||||||
uvicorn
|
|
||||||
google-genai
|
|
||||||
cerebras-cloud-sdk
|
|
||||||
groq
|
|
||||||
mistralai
|
|
||||||
requests
|
|
||||||
python-dotenv
|
|
||||||
pydantic
|
|
||||||
httpx
|
|
||||||
];
|
|
||||||
in
|
|
||||||
python3Packages.buildPythonApplication {
|
|
||||||
pname = "relay-free-llm";
|
|
||||||
version = "0.1.0+unstable";
|
|
||||||
format = "other";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "msmarkgu";
|
|
||||||
repo = "RelayFreeLLM";
|
|
||||||
rev = "96e6c48a552755bf250c3155b14176916c69d8d8";
|
|
||||||
hash = "sha256-SNux6hVOij+2kYFH/gUQQj8QLfxGzjcdakkZ48AIWPU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
propagatedBuildInputs = pyDeps;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
mkdir -p $out/lib/relay-free-llm
|
|
||||||
cp -r src $out/lib/relay-free-llm/
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
makeWrapper ${python3Packages.python.interpreter} $out/bin/relay-free-llm \
|
|
||||||
--add-flags "-m src.server" \
|
|
||||||
--prefix PYTHONPATH : "$out/lib/relay-free-llm:$PYTHONPATH"
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI LLM Gateway";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#relay-free-llm"
|
|
||||||
"--version=branch=main"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "RESTful API to route user prompts to various AI model providers";
|
|
||||||
homepage = "https://github.com/msmarkgu/RelayFreeLLM";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
mainProgram = "relay-free-llm";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
python3Packages,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication {
|
|
||||||
pname = "skillsmcp";
|
|
||||||
# Pinned to a commit rather than a release tag because upstream
|
|
||||||
# has not yet published a tagged release containing all features.
|
|
||||||
version = "0.2.0+unstable";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "aviddiviner";
|
|
||||||
repo = "skillsmcp";
|
|
||||||
rev = "4b1d1b0ad270ef5b8cb3c9024c276ccaf512c6d9";
|
|
||||||
hash = "sha256-xS2XEaAmIdYgNTVwJPfpcrQfqhcppO7FEguPwhfKgW4=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
|
||||||
hatchling
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
python3Packages.fastmcp
|
|
||||||
python3Packages.pyyaml
|
|
||||||
];
|
|
||||||
|
|
||||||
# Tests fail due to version-string expectations baked into the upstream
|
|
||||||
# source (pinned to a commit rather than a release tag). The import
|
|
||||||
# check below still verifies the module loads correctly.
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "skillsmcp" ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "MCP Servers";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#skillsmcp"
|
|
||||||
"--version=branch=main"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "MCP server that exposes Agent Skills to AI agents via the Model Context Protocol";
|
|
||||||
homepage = "https://github.com/aviddiviner/skillsmcp";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
mainProgram = "skillsmcp";
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pkg-config,
|
|
||||||
openssl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "stakpak";
|
|
||||||
version = "0.3.88";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "stakpak";
|
|
||||||
repo = "agent";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-rTqRxfAFQChA5fjW5VVxGThH0X7OodF1SdviMd3dK78=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoHash = "sha256-jf0PqcoNtfdcDNayPNVNeWNaa0acuUJeb3CYLKN6VeA=";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
openssl
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru.category = "AI Agents";
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "DevOps AI agent that generates infrastructure code, debugs Kubernetes, configures CI/CD, and automates deployments";
|
|
||||||
homepage = "https://stakpak.io";
|
|
||||||
changelog = "https://github.com/stakpak/agent/releases/tag/v${version}";
|
|
||||||
license = licenses.asl20;
|
|
||||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
||||||
mainProgram = "stakpak";
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
appimageTools,
|
|
||||||
fetchurl,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
version = "1.1.10";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/traycerai/traycer/releases/download/desktop-v${version}/traycer-desktop-linux-x86_64.AppImage";
|
|
||||||
hash = "sha256-+aSlqX1RCpbKuV0j7xEBMQDAq/IzpvCC5XZ/psQJcjY=";
|
|
||||||
};
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
|
||||||
pname = "traycer";
|
|
||||||
inherit version src;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
appimageTools.wrapType2 {
|
|
||||||
pname = "traycer";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
extraPkgs = pkgsWith: [
|
|
||||||
pkgsWith.gtk3
|
|
||||||
pkgsWith.glib
|
|
||||||
];
|
|
||||||
|
|
||||||
extraInstallCommands = ''
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
install -m 444 ${appimageContents}/traycer-desktop.desktop $out/share/applications/traycer.desktop
|
|
||||||
substituteInPlace $out/share/applications/traycer.desktop \
|
|
||||||
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=traycer --no-sandbox %U'
|
|
||||||
|
|
||||||
mkdir -p $out/share/icons/hicolor
|
|
||||||
cp -r ${appimageContents}/usr/share/icons/hicolor/* $out/share/icons/hicolor/
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
category = "AI Coding Agents";
|
|
||||||
updateScript = [
|
|
||||||
"nix-update"
|
|
||||||
"--flake"
|
|
||||||
".#traycer"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Open-source AI orchestration app for agentic coding";
|
|
||||||
homepage = "https://github.com/traycerai/traycer";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
maintainers = [ ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
mainProgram = "traycer";
|
|
||||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"version": 1,
|
|
||||||
"skills": {
|
|
||||||
"karpathy-guidelines": {
|
|
||||||
"source": "szkocot/andrej-karpathy-skills",
|
|
||||||
"sourceType": "github",
|
|
||||||
"skillPath": "skills/karpathy-guidelines/SKILL.md",
|
|
||||||
"computedHash": "41e8ca055bbde13d240776a14a076a59614057200340c243130a76ba4e64cac8"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
[global]
|
|
||||||
excluded = ["flake.lock"]
|
|
||||||
|
|
||||||
[formatter.nix]
|
|
||||||
command = "nixfmt"
|
|
||||||
includes = ["*.nix"]
|
|
||||||
Reference in New Issue
Block a user