nixpkgs/pkgs/development/tools/misc/pkgconfig/setup-hook.sh

8 lines
202 B
Bash
Raw Normal View History

addPkgConfigPath () {
if test -d $1/lib/pkgconfig; then
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}$1/lib/pkgconfig"
fi
}
envHooks=(${envHooks[@]} addPkgConfigPath)