{ lib, buildNpmPackage, fetchFromGitHub, flake, versionCheckHook, }: buildNpmPackage rec { npmDepsFetcherVersion = 2; pname = "codegraph"; version = "1.6.0"; src = fetchFromGitHub { owner = "colbymchenry"; repo = "codegraph"; tag = "v${version}"; hash = "sha256-Lr8J8/E/o4tECLe/uv0W2H6zD74+TH/431I2iIYZ2no="; }; npmDepsHash = "sha256-z3EDfWH4zw68+9Rl5wnwbVp0edNDuuzx4Jgq+nux6Ts="; makeCacheWritable = true; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; passthru.category = "Memory & Code Intelligence"; meta = { description = "Semantic code intelligence for AI coding agents"; homepage = "https://github.com/colbymchenry/codegraph"; changelog = "https://github.com/colbymchenry/codegraph/releases/tag/v${version}"; license = lib.licenses.mit; sourceProvenance = with lib.sourceTypes; [ fromSource ]; maintainers = with flake.lib.maintainers; [ Bad3r ]; mainProgram = "codegraph"; platforms = lib.platforms.all; }; }