mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
9fb1f66d30
Fixes cross-compilation for duktape and pugixml
19 lines
449 B
Bash
19 lines
449 B
Bash
# This setup hook validates each pkgconfig file in each output.
|
|
|
|
fixupOutputHooks+=(_validatePkgConfig)
|
|
|
|
_validatePkgConfig() {
|
|
local bail=0
|
|
for pc in $(find "$prefix" -name '*.pc'); do
|
|
# Do not fail immediately. It's nice to see all errors when
|
|
# there are multiple pkgconfig files.
|
|
if ! $PKG_CONFIG --validate "$pc"; then
|
|
bail=1
|
|
fi
|
|
done
|
|
|
|
if [ $bail -eq 1 ]; then
|
|
exit 1
|
|
fi
|
|
}
|