1#! @shell@
2set -eu -o pipefail +o posix
3shopt -s nullglob
4
5if (( "${NIX_DEBUG:-0}" >= 7 )); then
6 set -x
7fi
8
9source @out@/nix-support/utils.bash
10
11if [ -z "${NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@:-}" ]; then
12 source @out@/nix-support/add-flags.sh
13fi
14
15set -- @addFlags@ "$@"
16
17if (( ${#role_suffixes[@]} > 0 )); then
18 # replace env var with nix-modified one
19 PKG_CONFIG_PATH=$PKG_CONFIG_PATH_@suffixSalt@ exec @prog@ "$@"
20else
21 # pkg-config isn't a real dependency so ignore setup hook entirely
22 exec @prog@ "$@"
23fi