mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
b2d88d41e7
Hook accumulates the flag over sereval executions as observed in:
- https://github.com/NixOS/nixpkgs/issues/301592
- https://github.com/NixOS/nixpkgs/pull/252484#issuecomment-2089095268
Since this has been committed, gcc started emitting a warning on
`-Wno-incompatible-function-poniter-types` being an unrecognized flag
and additionally upstream vala added its own meassure to reduce these
new pointer errors to warnings in its generated sources.
23ec71b1a5
Which is part of the current release
branch (https://gitlab.gnome.org/GNOME/vala/-/commits/0.56?ref_type=heads)
and released on 0.56.15
```
Vala 0.56.15
============
* Various improvements and bug fixes:
- codegen:
...
+ Emit diagnostic pragmas for GCC 14, Clang 16 compatibility [#1408]
```
https://gitlab.gnome.org/GNOME/vala/-/merge_requests/369
16 lines
450 B
Bash
16 lines
450 B
Bash
make_vala_find_vapi_files() {
|
|
# XDG_DATA_DIRS: required for finding .vapi files
|
|
if [ -d "$1/share/vala/vapi" -o -d "$1/share/vala-@apiVersion@/vapi" ]; then
|
|
addToSearchPath XDG_DATA_DIRS $1/share
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" make_vala_find_vapi_files
|
|
|
|
_multioutMoveVapiDirs() {
|
|
moveToOutput share/vala/vapi "${!outputDev}"
|
|
moveToOutput share/vala-@apiVersion@/vapi "${!outputDev}"
|
|
}
|
|
|
|
preFixupHooks+=(_multioutMoveVapiDirs)
|