2020-04-28 04:39:58 +02: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-11-14 03:54:33 +01:00
|
|
|
# replace env var with nix-modified one
|
2020-04-28 04:39:58 +02:00
|
|
|
PKG_CONFIG_PATH=$PKG_CONFIG_PATH_@suffixSalt@ exec @prog@ "$@"
|
|
|
|
else
|
2021-11-14 03:54:33 +01:00
|
|
|
# pkg-config isn't a bonafied dependency so ignore setup hook entirely
|
|
|
|
exec @prog@ "$@"
|
2020-04-28 04:39:58 +02:00
|
|
|
fi
|