I’ve been trying to build Redpanda ( the fast Kafka server ), which is tricky cos it has bazel.
Anyway, I’ve managed to get it working, including with the bazel caching. This is a bit nasty, because it’s putting the bazel cache into the sandbox, so it’s not 100% “pure” anymore. Not recommended in general, but maybe that’s ok for some people who want the speed of bazel and need to rebuild multiple times.
The good news is nix builds much smaller OCI containers than the real redpanda ones.
Anyway, I spoke with a few people at PlanetNix about this idea, so I thought people might be interested to see. … I need to find another large project that has bazel, so I can see if this solution is generic enough.