about summary refs log tree commit diff
path: root/pkgs/games/build-support/build-sandbox/src/nix-query.h
Commit message (Collapse)AuthorAgeFilesLines
* pkgs/sandbox: Mount paths from path-like variablesaszlig2017-10-031-0/+6
On NixOS the LD_LIBRARY_PATH looks similar to this (depending on the configuration): /run/opengl-driver/lib:/run/opengl-driver-32/lib However, we don't have these paths available within the sandbox, because so far we've only used exportReferencesGraph to gather the runtime dependencies after the build has succeeded. This obviously doesn't take into account runtime dependencies from the system itself. We are now taking care of this by using the Nix store library to query the requisities of all the paths that are contained inside path-like variables (multiple paths delimited by colons) and mount them during sandbox setup. Signed-off-by: aszlig <aszlig@redmoonstudios.org>