Description
Zig Version
0.11.0-dev.1836+28364166e (but it doesn't matter)
Steps to Reproduce and Observed Behavior
The Zig package on Nix requires this patch: https://github.com/NixOS/nixpkgs/blame/e6e389917a8c778be636e67a67ec958f511cc55d/pkgs/development/compilers/zig/0.10.nix#L48-L51
If I use a precompiled zig
without that patch, then the dynamic linker used for built binaries is wrong, which leads to GLIBC mismatches (see mitchellh/zig-overlay#21).
Expected Behavior
It should use the correct dynamic linker, see the patch.
I'm not sure what the right generic answer to this is. An environment variable to override the path to env (or any binary to inspect) would work, but is clunky. Detecting NixOS is also an option, in which case you could inspect a different binary. I just wanted to get a tracking issue up because I couldn't find one.