-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: Add Nix flake and Devbox support for reproducible builds #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
levonk
wants to merge
10
commits into
rohitg00:main
Choose a base branch
from
levonk:feat-nix-package-manager-install
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
27b4578
feat: add Nix flake and Devbox support
levonk 166fd42
feat: make nix buildNpmPackage work for agentmemory CLI
levonk 8fe65b0
chore(devbox): add on_create hook to auto-install deps if missing
levonk d4dded8
fix: address PR feedback from CodeRabbit review
levonk d21909c
docs: point all user-facing repo references to upstream
levonk f6a3971
chore: remove lock files, ignore them, and clean devbox.json
levonk d6d0797
Merge branch 'rohitg00:main' into feat-nix-package-manager-install
levonk 755f8e7
Merge branch 'rohitg00:main' into feat-nix-package-manager-install
levonk b5fe7b2
docs(gitignore): add comment and unignore package-lock.json for Nix r…
levonk 6eabb33
Merge branch 'feat-nix-package-manager-install' of github-l:levonk/ag…
levonk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json", | ||
| "packages": [ | ||
| "nodejs_22", | ||
| "git" | ||
| ], | ||
| "hooks": { | ||
| "on_create": [ | ||
| "[ -d node_modules ] || npm install --legacy-peer-deps" | ||
| ] | ||
| }, | ||
| "shell": { | ||
| "init_hook": [ | ||
| "echo 'Welcome to the agentmemory devbox environment!'" | ||
| ], | ||
| "scripts": { | ||
| "install": "npm install --legacy-peer-deps", | ||
| "build": "npm run build", | ||
| "test": "npm test", | ||
| "dev": "npm run dev" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| { | ||
| description = "agentmemory - Persistent memory for AI coding agents"; | ||
|
|
||
| inputs = { | ||
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
| flake-utils.url = "github:numtide/flake-utils"; | ||
| }; | ||
|
|
||
| outputs = { self, nixpkgs, flake-utils }: | ||
| flake-utils.lib.eachDefaultSystem (system: | ||
| let | ||
| pkgs = nixpkgs.legacyPackages.${system}; | ||
|
|
||
| agentmemory = pkgs.buildNpmPackage { | ||
| pname = "agentmemory"; | ||
| version = "0.9.24"; | ||
| src = ./.; | ||
|
|
||
| npmDepsHash = "sha256-+fXZndf9P+h1SX+dQz7WQwyqAqMMKfXjV5u3Npn45Nk="; | ||
|
|
||
| nativeBuildInputs = [ pkgs.nodejs_22 ]; | ||
|
|
||
| postPatch = '' | ||
| echo "legacy-peer-deps=true" >> .npmrc | ||
| ''; | ||
|
|
||
| NPM_CONFIG_IGNORE_SCRIPTS = "true"; | ||
|
|
||
| meta = { | ||
| description = "Persistent memory for AI coding agents, powered by iii-engine's three primitives"; | ||
| homepage = "https://github.com/rohitg00/agentmemory"; | ||
| license = pkgs.lib.licenses.asl20; | ||
| mainProgram = "agentmemory"; | ||
| }; | ||
| }; | ||
| in | ||
| { | ||
| packages = { | ||
| default = agentmemory; | ||
| source = agentmemory; | ||
| }; | ||
|
|
||
| apps = { | ||
| default = { | ||
| type = "app"; | ||
| program = "${agentmemory}/bin/agentmemory"; | ||
| }; | ||
| source = { | ||
| type = "app"; | ||
| program = "${agentmemory}/bin/agentmemory"; | ||
| }; | ||
| }; | ||
|
|
||
| overlays.default = final: prev: { | ||
| agentmemory = agentmemory; | ||
| }; | ||
|
|
||
| devShells.default = pkgs.mkShell { | ||
| buildInputs = [ pkgs.nodejs_22 pkgs.git ]; | ||
|
|
||
| shellHook = '' | ||
| echo "Welcome to agentmemory dev shell" | ||
| export PATH="$PWD/node_modules/.bin:$PATH" | ||
|
|
||
| if [ ! -d "node_modules" ]; then | ||
| echo "Installing dependencies..." | ||
| npm install --legacy-peer-deps | ||
| fi | ||
| ''; | ||
| }; | ||
|
|
||
| checks = { | ||
| build = agentmemory; | ||
| }; | ||
| } | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.