chore: add Nix Flake support for reproducible builds and development#38
Merged
marcobambini merged 1 commit intosqliteai:mainfrom Jan 21, 2026
Merged
chore: add Nix Flake support for reproducible builds and development#38marcobambini merged 1 commit intosqliteai:mainfrom
marcobambini merged 1 commit intosqliteai:mainfrom
Conversation
Member
|
Hi @wjkoh, Thanks very much for your pull request that I've just accepted and merged. |
Contributor
Author
|
Thanks @marcobambini for the swiftest PR merge I've ever seen! I wrote a blog post about it: https://cwrk.ai/posts/sqlite-vector-nix-flake-support/. This change will save a lot of dev hours. Thanks again for making this happen! |
Member
|
Thanks a lot @wjkoh for the blog post! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi SQLite AI team,
First off, thank you for open-sourcing
sqlite-vector. It is a fantastic extension, and the focus on "zero preindexing" and low memory footprint makes it incredibly useful for edge applications.I’ve put together a PR that adds Nix Flake support to the repository.
Why this is useful
Nix provides a purely functional deployment model that ensures reproducible builds across different environments. By adding a
flake.nix, we allow developers and users to:nix developto drop into a shell with all dependencies (sqlite,make, compilers) pre-configured. No need to manually install system libraries or worry about version mismatches.nix build github:sqliteai/sqlite-vector), or easily include it as a dependency in their own Nix-based projects.nix buildto compile the extension in a sandboxed environment, ensuring it works strictly with the declared dependencies.SQLITE_VECTOR_LIBenvironment variable pointing to the built extension, making it trivial to test:What changed
This PR adds two files:
flake.nixandflake.lock.Makefileworkflow, so it does not interfere with your current build process.CCand handling macOS vs. Linux shared library extensions).I hope you find this addition helpful for the community!