Support for `/lib/ld-musl-x86_64.so.1`
I'm using `nix-ld-rs` for VSCode Server and it seems to be working fine, except that the current version of the `ms-dotnettools.vscode-dotnet-runtime` extension is using a `dotnet` binary that uses `/lib/ld-musl-x86_64.so.1` and I can't make it work. I assume that I could use `nix-ld-rs` to run it if I set `NIX_LD` to musl's interpreter and set `NIX_LD_LIBRARY_PATH` to a folder of libraries built using musl, but I don't have any way to set the environment just for invoking this binary and I need the defaults for VSCode Server itself.
What I'd really like is some solution that allows me to symlink `/lib/ld-musl-x86_64.so.1` and have everything work. Something like providing vars `NIX_LD_musl`/`NIX_LD_x86_64_linux_musl` and `NIX_LD_LIBRARY_PATH_musl`/`NIX_LD_LIBRARY_PATH_x86_64_linux_musl` and then either having `nix-ld-rs` look at what interpreter the binary wanted to determine musl support, or possibly just having a separate `libexec/nix-ld-musl` binary that does it.
4 条评论