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

11 lines
244 B
Bash
Raw Normal View History

addPkgConfigPath () {
addToSearchPath PKG_CONFIG_PATH $1/lib/pkgconfig
addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig
}
if test -n "$crossConfig"; then
2014-07-08 14:20:05 +02:00
crossEnvHooks+=(addPkgConfigPath)
else
2014-07-08 14:20:05 +02:00
envHooks+=(addPkgConfigPath)
fi