Comment

Comment by hamandcheese

You contrast Nix with Bazel, and liken it to Docker, tells me you don't have a great grasp of what Nix is. It is far more similar to Bazel than it is to Docker.

> Depend on glibc, copypaste all your other shared lib dependencies and plop them in RPATH. Pretend `/lib` is locked at initial install. Remove `/usr/lib` from the path and include everything.

You are not describing relocatable builds at all. You are describing... well, it kinda sounds like how Nix handles RPATH.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton