✗ GTK 3.0 development libraries are required for Linux development

Hi,

I installed Flutter via Flutter version management ( FVM ). but I have problem with GTK 3.0 development libraries.

I tried to add the following in configuration.nix

  environment.systemPackages = with pkgs; [
        ...
        gcc
        gnumake
        at-spi2-core.dev
        clang
        cmake
        dbus.dev
        gtk3
        libdatrie
        libepoxy.dev
        libselinux
        libsepol
        libthai
        libxkbcommon
        ninja
        pcre
        pkg-config
        util-linux.dev
        xorg.libXdmcp
        xorg.libXtst
  ];

but when I run flutter doctor, it outputs

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on NixOS 25.05 (Warbler) 6.11.11, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop
    ✗ GTK 3.0 development libraries are required for Linux development.
      They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[✓] Android Studio (version 2024.2)
[✓] Connected device (1 available)
[✓] Network resources

! Doctor found issues in 2 categories.

I appreciate any help.

Definitely do not put gcc, libraries, compilers, build tooling, etc in your system packages. Use development shells instead.

Because I want the most updated stable version

I would like to have a global environment.

Doesn’t work on NixOS, sorry.