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
|
|
|
|
|
|
|
|
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-06 16:07:01 +00:00
|
|
|
# pkg-config isn't a bonafied dependency so ignore setup hook entirely
|
|
|
|
exec @prog@ "$@"
|
2020-06-18 07:06:33 +00:00
|
|
|
fi
|