Undeclared dependency on gio-unix-2.0
I am building GNOME Panel 3.28.0 on NixOS and getting the following error:
CC status_notifier_la-sn-watcher-v0-gen.lo
sn-dbus-menu-gen.c:16:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:675: status_notifier_la-sn-dbus-menu-gen.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
sn-host-v0-gen.c:16:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:682: status_notifier_la-sn-host-v0-gen.lo] Error 1
sn-item-v0-gen.c:16:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:689: status_notifier_la-sn-item-v0-gen.lo] Error 1
sn-watcher-v0-gen.c:16:12: fatal error: gio/gunixfdlist.h: No such file or directory
# include <gio/gunixfdlist.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:696: status_notifier_la-sn-watcher-v0-gen.lo] Error 1
make[4]: Leaving directory '/build/gnome-panel-3.28.0/modules/status-notifier'
make[3]: *** [Makefile:502: all] Error 2
make[3]: Leaving directory '/build/gnome-panel-3.28.0/modules/status-notifier'
make[2]: *** [Makefile:449: all-recursive] Error 1
make[2]: Leaving directory '/build/gnome-panel-3.28.0/modules'
make[1]: *** [Makefile:540: all-recursive] Error 1
make[1]: Leaving directory '/build/gnome-panel-3.28.0'
make: *** [Makefile:472: all] Error 2
Downstream issue: https://github.com/NixOS/nixpkgs/issues/36468