Failed to install Nix in iSH, iOS

System: i686-linux
host os: Linux 4.20.69-ish iSH 1.2.3 (298) i686 Linux
shell: bash 5.1.16

I am executing:

    $ sudo /nix/store/acghbpn3aaj2q64mz3ljipsgf9d9qxlp-nix-2.11.1/bin/nix-store --load-db

to load data for the first time in to the Nix Database

/nix/store/acghbpn3aaj2q64mz3ljipsgf9d9qxlp-nix-2.11.1/bin/nix-store: error while loading shared libraries: cannot stat shared object: No such file or directory


Nix on my phone? I had to check this out!
I got the same error, decided to see what happens.

~# ldd /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/
        /lib/ (0xf7f66000) => /lib/ (0xf7f66000) => /lib/ (0xf7f66000) => /nix/store/n7r6ynq8mcr9wphb0yb1frrxr2yp78bg-glibc-2.34-210/lib/ (0xf7ebc000)
Error relocating /nix/store/n7r6ynq8mcr9wphb0yb1frrxr2yp78bg-glibc-2.34-210/lib/ unsupported relocation type 42
Error relocating /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/ __memcpy_chk: symbol not found
Error relocating /nix/store/nd4d8pqaq9mdr50gfxrs3b52k7s3zwld-libsodium-1.0.18/lib/ __explicit_bzero_chk: symbol not found

It looks like musl linker that is used by Alpine in this VM can’t handle glibc symbols or something.
I’d recommend trying Nix compiled with musl somehow.