2020-04-28 03:39:58 +01:00
|
|
|
#! @shell@
|
|
|
|
set -eu -o pipefail +o posix
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
if (( "${NIX_DEBUG:-0}" >= 7 )); then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
source @out@/nix-support/utils.bash
|
|
|
|
|
|
|
|
if [ -z "${NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@:-}" ]; then
|
|
|
|
source @out@/nix-support/add-flags.sh
|
|
|
|
fi
|
|
|
|
|
2021-11-03 16:57:34 +00:00
|
|
|
set -- "$@" @addFlags@
|
|
|
|
|
2020-04-28 03:39:58 +01:00
|
|
|
if (( ${#role_suffixes[@]} > 0 )); then
|
2021-11-14 02:54:33 +00:00
|
|
|
# replace env var with nix-modified one
|
2020-04-28 03:39:58 +01:00
|
|
|
PKG_CONFIG_PATH=$PKG_CONFIG_PATH_@suffixSalt@ exec @prog@ "$@"
|
|
|
|
else
|
2021-11-30 13:10:41 +00:00
|
|
|
# pkg-config isn't a real dependency so ignore setup hook entirely
|
2021-11-14 02:54:33 +00:00
|
|
|
exec @prog@ "$@"
|
2020-04-28 03:39:58 +01:00
|
|
|
fi
|