nixpkgs-suyu/pkgs/applications/graphics/apitrace
Guillaume Bouchard b3c18fe2be
apitrace: fix OpenGL library path and Qt GUI (#86475)
For unknown reasons, Apitrace breaks the runpath of the traced program.
OpenGL programs on nix are looking at /run/opengl-driver/lib to find the
system OpenGL driver.

This change:

- add path /run/opengl-driver{-32} to the RPATH of the wrapper
libraries. This fixs tracing with `apitrace trace`.
- add rpath to `libglnvd` and `libGL` to the `{e}glretrace` binaries.
These libraries are loaded at runtime, but does not appears as NEEDED in
the binaries, hence the need for the explicit rpath addition. This fix
`{e}glretrace`.
- Explicitly add Qt wrapper to `qapitrace`. It fixs the GUI.

Co-authored-by: Florian Klink <flokli@flokli.de>

Co-authored-by: Florian Klink <flokli@flokli.de>
2020-05-04 12:39:44 +00:00
..
default.nix apitrace: fix OpenGL library path and Qt GUI (#86475) 2020-05-04 12:39:44 +00:00