256lights/zb
View on GitHub ↗ ★ 409 Go
An experiment in hermetic, reproducible build systems
10 mentions on Hacker News by 4 people: 0 stories, 10 comments · first 2024-09-19 · latest 2025-04-10
20082026
-
…haven't actually used it (only read the README and blog posts), but I really enjoy the ideas behind https://github.com/256lights/zb - see https://www.zombiezen.com/blog/2024/09/zb-early-stage-build-... for a list of these ideas.
comment by bbkane · 2025-04-10 · in The next generation of Bazel builds -
Good point. Opened https://github.com/256lights/zb/issues/47 to track this idea.
comment by zombiezen · 2024-09-23 · in Zb: An Early-Stage Build System -
I see the instructions discuss $(mkdir /zb) < https://github.com/256lights/zb#linux-or-macos > and after seeing references to Nix I wanted to ensure this wasn't a hard-and-fast directory choice since macOS has immutable / and it causes no…
comment by mdaniel · 2024-09-20 · in Zb: An Early-Stage Build System -
https://github.com/256lights/zb/blob/102795d6cb383a919dd378d... TIL I can also use semicolons on lua tables, not just commas: return derivation { name = "hello.txt"; ["in"] = path "hello.txt"; builder = "/bin/sh"; system = "x86_64-linux";…
comment by nvlled · 2024-09-20 · in Zb: An Early-Stage Build System -
Not yet, but I've hacked up most of the Linux sandboxing: https://github.com/256lights/zb/issues/29 I want to introduce Windows sandboxing, too, but I'm not as confident about how to do that: https://github.com/256lights/zb/issues/31
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System -
Nice! It might be a little too rough until I've got a working C compiler for Windows: https://github.com/256lights/zb/issues/6 (and Linux for that matter: https://github.com/256lights/zb/issues/30 )
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System -
…sandboxes derivation runs on Linux even without flakes, and I'm planning on implementing that, yes: https://github.com/256lights/zb/issues/29 and https://github.com/256lights/zb/issues/31 MinGW is used to build Lua using cgo. I'd like to…
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System -
Tracking issue is https://github.com/256lights/zb/issues/2 The hurdles to interop I see are: - Nixpkgs is not content-addressed (yet). I made a conscious decision to only support content-addressed derivations in zb to simplify the build…
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System -
…tps://www.zombiezen.com/blog/2024/06/zb-build-system-proto... The last commit using that approach was https://github.com/256lights/zb/tree/558c6f52b7ef915428c9af9... if you want to try it out. And actually, I haven't touched the Lua…
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System -
…for marking a target as intentionally non-deterministic and always triggering this re-run behavior: https://github.com/256lights/zb/issues/33 ) I'll admit I haven't done my research into how Bazel handles non-determinism, especially…
comment by zombiezen · 2024-09-19 · in Zb: An Early-Stage Build System