1 # shellcheck shell=bash
2 # Run addDriverRunpath on all dynamically linked, ELF files
3 echo "Sourcing auto-add-driver-runpath-hook"
5 if [ -n "${dontUseAutoAddOpenGLRunpath-}" ]; then
6 echo "dontUseAutoAddOpenGLRunpath has been deprecated, please use dontUseAutoAddDriverRunpath instead"
9 # Respect old toggle value to allow for people to gracefully transition
10 # See: https://github.com/NixOS/nixpkgs/issues/141803 for transition roadmap
11 if [ -z "${dontUseAutoAddDriverRunpath-}" -a -z "${dontUseAutoAddOpenGLRunpath-}" ]; then
12 echo "Using autoAddDriverRunpath"
13 postFixupHooks
+=("autoFixElfFiles addDriverRunpath")