Compiling gtk+ packages

I’m having trouble creating a shell capable of compiling gtk+ programs. I’m using this configuration:

let
  pkgs = import <nixpkgs> {};
in
  pkgs.mkShell {
    buildInputs = with pkgs;[
      wayland
      gtk3
      gtkmm3
      cmake
      pkg-config
    ];
  }

But pkg-config is unable to locate gtk+:

$ pkg-config --libs --cflags wayland-client                                                                                                                                              
-I/nix/store/zs6fyy5s7yh0pvjh0dxb6ii3dxx8xbl7-wayland-1.17.0/include -L/nix/store/zs6fyy5s7yh0pvjh0dxb6ii3dxx8xbl7-wayland-1.17.0/lib -lwayland-client
$ pkg-config --libs --cflags gtk+                                                                                                                                                        
Package gtk+ was not found in the pkg-config search path.
Perhaps you should add the directory containing 'gtk+.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+' found
$                                                                                                                                                                                        

The pkg-config name for GTK 3 is gtk+-3.0.

2 Likes