Nix-ld: Difference between revisions
TobiasBora (talk | contribs) No edit summary |
TobiasBora (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
}; | }; | ||
## Uncomment if you used steamrun's libraries | ## Uncomment if you used steamrun's libraries | ||
# nixpkgs.config.allowUnfree = true;</syntaxhighlight>By default, nix-ld comes with only a few libraries, and you need to manually add | # nixpkgs.config.allowUnfree = true;</syntaxhighlight>By default, nix-ld comes with only a few libraries, and you need to manually add your own. A simple (but a bit tedious) approach to know which library to add is to run the program, and check for errors like:<syntaxhighlight lang="bash"> | ||
$ ./blender | $ ./blender | ||
./blender: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory | ./blender: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory |