i tried to build against Gtk+ 3.16.6 on NixOS and get this errors:
installing br.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/br/LC_MESSAGES/adwaita-icon-theme.mo
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/Utils.vala:279.23-279.48: warning: GLib.Settings.list_schemas has been deprecated since 2.40
installing bs.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/bs/LC_MESSAGES/adwaita-icon-theme.mo
installing ca.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/ca/LC_MESSAGES/adwaita-icon-theme.mo
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/DynamicNotebook.vala:640.58-640.61: warning: Argument 1: Cannot pass null to non-null parameter type
this.notebook.set_action_widget (null, Gtk.PackType.START);
^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/WelcomeButton.vala:88.41-88.60: error: The name `STYLE_CLASS_FLAT' does not exist in the context of `Gtk'
get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
^^^^^^^^^^^^^^^^^^^^
installing <email address hidden> as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/ca@valencia/LC_MESSAGES/adwaita-icon-theme.mo
installing crh.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/crh/LC_MESSAGES/adwaita-icon-theme.mo
yes
checking libintl.h usability... /tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/StorageBar.vala:268.13-268.40: error: The name `set_center_widget' does not exist in the context of `Gtk.Box'
legend_box.set_center_widget (legend_fill);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/StorageBar.vala:117.9-117.43: error: The name `set_center_widget' does not exist in the context of `Gtk.Box'
legend_center_box.set_center_widget (legend_box);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/StorageBar.vala:126.9-126.25: error: The name `set_center_widget' does not exist in the context of `Granite.Widgets.StorageBar'
set_center_widget (grid);
^^^^^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/StorageBar.vala:132.33-132.45: error: The name `length' does not exist in the context of `GLib.HashTable<int,Granite.Widgets.StorageBar.FillBlock>'
for (int i = 0; i < blocks.length; i++) {
^^^^^^^^^^^^^
installing cs.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/cs/LC_MESSAGES/adwaita-icon-theme.mo
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/CellRendererExpander.vala:91.46-91.67: error: The name `CHECKED' does not exist in the context of `Gtk.StateFlags'
const Gtk.StateFlags EXPANDED_FLAG = Gtk.StateFlags.CHECKED;
^^^^^^^^^^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/CellRendererExpander.vala:92.46-92.58: error: The name `EXPANDED_FLAG' does not exist in the context of `Granite.Widgets.CellRendererExpander.render'
ctx.set_state (is_expanded ? state | EXPANDED_FLAG : state & ~EXPANDED_FLAG);
^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/CellRendererExpander.vala:92.38-92.58: error: var declaration not allowed with non-typed initializer
ctx.set_state (is_expanded ? state | EXPANDED_FLAG : state & ~EXPANDED_FLAG);
^^^^^^^^^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/CellRendererExpander.vala:92.71-92.83: error: The name `EXPANDED_FLAG' does not exist in the context of `Granite.Widgets.CellRendererExpander.render'
ctx.set_state (is_expanded ? state | EXPANDED_FLAG : state & ~EXPANDED_FLAG);
^^^^^^^^^^^^^
/tmp/nix-build-granite-0.3.1.drv-0/granite-0.3.1/lib/Widgets/CellRendererExpander.vala:92.62-92.83: error: var declaration not allowed with non-typed initializer
ctx.set_state (is_expanded ? state | EXPANDED_FLAG : state & ~EXPANDED_FLAG);
^^^^^^^^^^^^^^^^^^^^^^
installing csb.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/csb/LC_MESSAGES/adwaita-icon-theme.mo
Compilation failed: 10 error(s), 2 warning(s)
lib/CMakeFiles/granite.dir/build.make:239: recipe for target 'lib/granite_valac.stamp' failed
make[2]: *** [lib/granite_valac.stamp] Error 1
CMakeFiles/Makefile2:117: recipe for target 'lib/CMakeFiles/granite.dir/all' failed
make[1]: *** [lib/CMakeFiles/granite.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
installing cy.gmo as /nix/store/pcfgjw7d1psmrzn4z0hi93vkw67zym90-adwaita-icon-theme-3.16.0//locale/cy/LC_MESSAGES/adwaita-icon-theme.mo
builder for ‘/nix/store/2430kvs17cg98i8l0gnmj9kbgqlrszi1-granite-0.3.1.drv’ failed with exit code 2