mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
15 lines
390 B
Bash
15 lines
390 B
Bash
|
# Run autoOpenGLRunpath on all files
|
||
|
echo "Sourcing auto-add-opengl-runpath-hook"
|
||
|
|
||
|
autoAddOpenGLRunpathPhase () {
|
||
|
# TODO: support multiple outputs
|
||
|
for file in $(find ${out,lib,bin} -type f); do
|
||
|
addOpenGLRunpath $file
|
||
|
done
|
||
|
}
|
||
|
|
||
|
if [ -z "${dontUseAutoAddOpenGLRunpath-}" ]; then
|
||
|
echo "Using autoAddOpenGLRunpathPhase"
|
||
|
postFixupHooks+=(autoAddOpenGLRunpathPhase)
|
||
|
fi
|