nixpkgs-suyu/pkgs/development/tools/misc/pkgconfig/setup-hook.sh
Eelco Dolstra c8455be838 * Use a setup hook to set PKG_CONFIG_PATH.
svn path=/nixpkgs/trunk/; revision=822
2004-03-09 10:45:01 +00:00

7 lines
202 B
Bash

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)