How to give Nix software access to native libraries when running Nix package manager on a non-NixOS distribution
From NixOS Wiki
This page is currentlya work-in-progress, this is a draft of what is to come.
Example errors:
`error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory`
`libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast [glfw error 65543]: GLX: Failed to create context: GLXBadFBConfig Failed to create a window a`
Solution: https://github.com/NixOS/nixpkgs/issues/9415#issuecomment-139655485