778f1c6575
The gtk-query-immodules-{2,3}.0 util writes argv[0] to its stdout
in a comment (i.e., "# Created by ..."). This results in a reference to
pkgs.gtk{2,3}.dev being present in the closure.
This commit avoids this issue by adding the pkgs.gtk{2,3}.dev to path
and calling gtk-query-immodules-{2,3}.0 without its full path.
Furthermore, pkgs.gtk{2,3}.dev is added to disallowedReferences to avoid
future regressions.