forked from mirrors/nixpkgs
046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
22 lines
534 B
Bash
22 lines
534 B
Bash
make_gobject_introspection_find_gir_files() {
|
|
|
|
# required for .typelib files, eg mypaint git version
|
|
if [ -d "$1/lib/girepository-1.0" ]; then
|
|
addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0
|
|
fi
|
|
|
|
# XDG_DATA_DIRS: required for .gir files?
|
|
if [ -d "$1/share" ]; then
|
|
addToSearchPath XDG_DATA_DIRS $1/share
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" make_gobject_introspection_find_gir_files
|
|
|
|
_multioutMoveGlibGir() {
|
|
moveToOutput share/gir-1.0 "${!outputDev}"
|
|
}
|
|
|
|
preFixupHooks+=(_multioutMoveGlibGir)
|
|
|