diff --git a/pkgs/by-name/co/codebase-memory-mcp/package.nix b/pkgs/by-name/co/codebase-memory-mcp/package.nix index c2ed67df3256..84f8362ced0d 100644 --- a/pkgs/by-name/co/codebase-memory-mcp/package.nix +++ b/pkgs/by-name/co/codebase-memory-mcp/package.nix @@ -14,10 +14,14 @@ stdenv.mkDerivation (finalAttrs: { rev = "v${finalAttrs.version}"; hash = "sha256-H0l8H2JhPT1Rs0p+CJC1a1qYtnZNgLGe6n7PmM+WvE4="; }; + nativeBuildInputs = [ gnumake ]; + buildInputs = [ zlib ]; + strictDeps = true; __structuredAttrs = true; + # scripts/build.sh verifies CC via `file`, which fails on Nix's compiler wrapper. # Call make directly — mirrors upstream flake.nix. buildPhase = '' @@ -25,11 +29,13 @@ stdenv.mkDerivation (finalAttrs: { make -j$NIX_BUILD_CORES -f Makefile.cbm cbm CFLAGS_EXTRA='-DCBM_VERSION=\"${finalAttrs.version}\"' runHook postBuild ''; + installPhase = '' runHook preInstall install -Dm755 build/c/codebase-memory-mcp $out/bin/codebase-memory-mcp runHook postInstall ''; + meta = { homepage = "https://github.com/DeusData/codebase-memory-mcp"; description = "High-performance C11 MCP server that indexes codebases into a persistent knowledge graph";