256lights / zb

An experiment in hermetic, reproducible build systems
MIT License
184 stars 3 forks source link

Split up demo files to demonstrate lazy evaluation #4

Open zombiezen opened 3 months ago

zombiezen commented 3 months ago

With Lua metatables, we could have a top-level file like all-packages.nix that simply holds references to other files that contain the real derivations, then lazily load the Lua files as the table is indexed. This would make evaluation faster by reducing the number of derivations that are evaluated to satisfy the build request.