Support not copying the entire source tree into the store #72

Merged
jade merged 5 commits from jade/unflaker-i-hardly-know-er into main 2025-03-26 23:22:09 +00:00
Owner

This allows for having lazy trees at home and finally being able to evaluate huge repos as flakes quickly.

This allows for having lazy trees at home and finally being able to evaluate huge repos as flakes *quickly*.
If you want your nixpkgs or other giant repo to evaluate fast, this is
how you have to do it.
This leads to a higher degree of compatibility with CppNix/Lix flakes
since paths now match
This ensures that it actually evaluates as expected.
@ -7,0 +6,4 @@
# Given a source tree containing a 'flake.nix' and 'flake.lock' file,
# flake-compat fetches the flake inputs and calls the flake's 'outputs'
# function. It then returns an attrset containing 'defaultNix' (to be used in
# 'default.nix'), 'shellNix' (to be used in 'shell.nix').
Owner

Non-blocking: I've never been super clear on what exactly these attributes contain, and it should probably be documented. Presumably shellNix is devShells.${system}.default, but there's a number of reasonable options for defaultNix...

Not really related to this PR, but seeing this reminded me

Non-blocking: I've never been super clear on what exactly these attributes contain, and it should probably be documented. Presumably `shellNix` is `devShells.${system}.default`, but there's a number of reasonable options for `defaultNix`... Not really related to this PR, but seeing this reminded me
rbt approved these changes 2025-03-26 22:33:54 +00:00
rbt left a comment
Owner

Sweet. And it includes tests!!!

Sweet. And it includes *tests*!!!
jade merged commit d87367d781 into main 2025-03-26 23:22:09 +00:00
Sign in to join this conversation.
No description provided.