Files
avcf/shell.nix
T
adrien b8e8ef9113 overhaul: modular architecture, tests, doc generation, warning system, and UX improvements
- Modular block files: split into blocks-algo, blocks-data, blocks-proc
- New modules: sections.js (labelled canvas areas), proc-browser.js (procedure tree modal), lib-loader.js (lazy library loading), templates.js (project templates), errno-data.js (errno table)
- Test infrastructure: browser test suite (28 tests) and Node pure-function tests (75 tests)
- Warning system: unified .block-warn for disconnected inputs, unconnected error hooks, and zero-exit-in-error-path
- Error path highlighting: red flow paths and block borders for error-only subgraphs
- Input hooks: hidden by default, shown during linking; outputs always at bottom
- Block editor modal: pencil icon, colour picker for accent, compact field labels
- Doc generation: standalone node script extracts JSDoc -> docs/API.md (124 declarations)
- Persistence: save/restore sections, errno selection, block colours
- Fixes: _segmentsIntersect bug, WCEnd crash from closest(this), drawpath guard on detached elements
2026-06-22 18:31:23 +02:00

55 lines
1.3 KiB
Nix

{ pkgs ? import <nixpkgs> {} }:
let
codegraph = pkgs.stdenv.mkDerivation {
pname = "codegraph";
version = "1.0.1";
src = pkgs.fetchurl {
url = "https://github.com/colbymchenry/codegraph/releases/download/v1.0.1/codegraph-linux-x64.tar.gz";
sha256 = "d45a068f44596a85c7ba7d0ef924eaf7103fbbf3cafbeb668127daff60a52228";
};
sourceRoot = "codegraph-linux-x64";
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
buildInputs = with pkgs; [
stdenv.cc.cc
zlib
openssl
];
installPhase = ''
mkdir -p $out/bin
cp -r . $out/
chmod +x $out/node $out/bin/codegraph
'';
meta = {
description = "Code understanding and indexing tool for AI coding agents";
homepage = "https://github.com/colbymchenry/codegraph";
license = pkgs.lib.licenses.mit;
platforms = [ "x86_64-linux" ];
};
};
in
pkgs.mkShell {
packages = with pkgs; [
opencode
python3
codegraph
sdl3
nodejs
];
shellHook = ''
echo "━━━ development shell ━━━"
echo " opencode $(opencode --version 2>&1 || true)"
echo " codegraph $(codegraph --version 2>&1 || true)"
echo " python $(python --version 2>&1 || true)"
echo " nodejs $(node --version 2>&1 || true)"
'';
}