feat: add Nix flake for reproducible builds#8
Conversation
Package KiLM as a Nix flake following the two-file split
(flake.nix for pinning/wiring, pkgs/kilm.nix for build logic via callPackage).
Outputs: packages.{kilm,default}, apps.{kilm,default}, devShells.default,
overlays.default. README gains a Nix usage section.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@TheCodedKid is attempting to deploy a commit to the Paxia LLC Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdded Nix flake outputs and a KiLM package expression, documented Nix run/build/dev-shell and NixOS/home-manager usage, and updated ChangesNix packaging and usage
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What Changed
Packages KiLM as a Nix flake so it can be built, run, and installed reproducibly via Nix.
Outputs
packages.default/.kilmnix build github:barisgit/KiLMapps.default/.kilmnix run github:barisgit/KiLMdevShells.defaultnix develop(pytest + ruff)overlays.defaultpkgs.kilmin a NixOS / home-manager configStructure
Follows the two-file split (build logic kept out of the flake):
flake.nix— pins nixpkgs, wires the overlay, exposes outputs. No build logic.pkgs/kilm.nix—buildPythonPackage(hatchling), deps, tests, viacallPackage.Notes
pythonRemoveDeps = ["pathlib"]— pyproject declares the dead PyPIpathlibbackport; it's stdlib on py3 and absent from nixpkgs.gitand a writable$HOME, both wired innativeCheckInputs/preCheck.flake-utils.lib.eachDefaultSystem.Verification
Changes
flake.nix,flake.lock,pkgs/kilm.nix— the flakeREADME.md— Nix usage section.gitignore— ignoreresultsymlinksSummary by CodeRabbit
New Features
nix run,nix build, andnix develop.Chores