evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / au / autoAddDriverRunpath / auto-add-driver-runpath-hook.sh
blob5e9ed97375afbcdd8f2f0415e9bd1ce3a743f296
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"
7 fi
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")