Skip to content

Add Nix packaging for Rego and test dependencies - #75

Merged
Nfsaavedra merged 2 commits into
mainfrom
nix
Aug 12, 2026
Merged

Add Nix packaging for Rego and test dependencies#75
Nfsaavedra merged 2 commits into
mainfrom
nix

Conversation

@Nfsaavedra

Copy link
Copy Markdown
Member

Summary

  • Build librego in Nix and install it where the Python wrapper expects it.
  • Package the Jinja2 tok_loc and python-hcl2 git forks, and run pytest during nix build with Ruby and Z3 on PATH.
  • Expose glitch, Ruby, Z3, and pytest in nix develop.

Test plan

  • nix build completes (pytest in checkPhase)
  • nix develop -c pytest tests runs from the repo root
  • nix run still starts GLITCH
  • Chef parsing works when Ruby is available (nix develop)

Made with Cursor

Nfsaavedra and others added 2 commits August 12, 2026 21:05
Package the Jinja2 and python-hcl2 forks, and provide Ruby and Z3 during checks so nix build can execute pytest.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Nfsaavedra
Nfsaavedra merged commit 21db8c4 into main Aug 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant