mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
11 lines
244 B
Bash
11 lines
244 B
Bash
addPkgConfigPath () {
|
|
addToSearchPath PKG_CONFIG_PATH $1/lib/pkgconfig
|
|
addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig
|
|
}
|
|
|
|
if test -n "$crossConfig"; then
|
|
crossEnvHooks+=(addPkgConfigPath)
|
|
else
|
|
envHooks+=(addPkgConfigPath)
|
|
fi
|