2020-06-18 07:06:33 +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
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
set -- "$@" @addFlags@
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
if (( ${#role_suffixes[@]} > 0 )); then
|
2021-12-06 16:07:01 +00:00
|
|
|
# replace env var with nix-modified one
|
2020-06-18 07:06:33 +00:00
|
|
|
PKG_CONFIG_PATH=$PKG_CONFIG_PATH_@suffixSalt@ exec @prog@ "$@"
|
|
|
|
else
|
2021-12-26 17:43:05 +00:00
|
|
|
# pkg-config isn't a real dependency so ignore setup hook entirely
|
2021-12-06 16:07:01 +00:00
|
|
|
exec @prog@ "$@"
|
2020-06-18 07:06:33 +00:00
|
|
|
fi
|