Undeclared dependency on gio-unix-2.0
I am building gnome-desktop 3.28.2 on NixOS and getting the following error:
meta-dbus-xrandr.c:15:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:806: meta-dbus-xrandr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
meta-dbus-idle-monitor.c:15:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:806: meta-dbus-idle-monitor.lo] Error 1
make[3]: Leaving directory '/build/gnome-desktop-3.28.2/libgnome-desktop'
make[2]: *** [Makefile:584: all] Error 2
make[2]: Leaving directory '/build/gnome-desktop-3.28.2/libgnome-desktop'
make[1]: *** [Makefile:580: all-recursive] Error 1
make[1]: Leaving directory '/build/gnome-desktop-3.28.2'
make: *** [Makefile:489: all] Error 2
3.29.4 produces the same error.
Downstream issue: https://github.com/NixOS/nixpkgs/issues/36468