nixpkgs/pkgs/development/tools/misc/pkgconfig/setup-hook.sh
Eelco Dolstra 7a424b47f6 * Revert the setup hook changes on the trunk (but they remain on the
stdenv-updates branch).

svn path=/nixpkgs/trunk/; revision=9652
2007-11-12 13:51:46 +00:00

8 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)