2020-04-28 02:39:58 +00: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
|
|
|
|
|
2022-12-22 11:29:24 +00:00
|
|
|
set -- @addFlags@ "$@"
|
2021-11-03 16:57:34 +00:00
|
|
|
|
2020-04-28 02:39:58 +00:00
|
|
|
if (( ${#role_suffixes[@]} > 0 )); then
|
2021-11-14 02:54:33 +00:00
|
|
|
# replace env var with nix-modified one
|
2020-04-28 02:39:58 +00: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 02:39:58 +00:00
|
|
|
fi
|