Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(nix): wrap ai-memory binary with git on PATH

Bet41f304ea567ca
diff --git a/flake.nix b/flake.nix
index 2ede7d5d..08067b88 100644
--- a/flake.nix
+++ b/flake.nix
@@ -365,8 +365,9 @@
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
- # No nativeBuildInputs needed — the build is fully self-contained
- # (SQLite bundled, libgit2 vendored, rustls with webpki-roots).
+ nativeBuildInputs = [
+ pkgs.makeBinaryWrapper
+ ];
# Skip the Tailwind CLI download in the sandbox. The build script
# falls back to the vendored static/tailwind.css committed to the
@@ -402,6 +403,11 @@
$out/etc/ai-memory/config.default.toml
'';
+ # Wrap git on PATH so cli operations shelling out to git succeed in minimal environments.
+ postFixup = ''
+ wrapProgram $out/bin/ai-memory --prefix PATH : ${lib.makeBinPath [ pkgs.git ]}
+ '';
+
meta = {
description = "Long-term memory for AI coding agents";
homepage = "https://aimemory.sh";