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