Change version of zig in nix flake

Hello. New flake user here.
So I am trying to set up nix flake within zig project using the following flake which generate zig version 0.9. But I want the latest version of zig which is 0.12.
How to change flake to get the latest version.

{
  inputs = {
    nixpkgs = {
      type = "github";
      owner = "nixos";
      repo = "nixpkgs";
      ref = "e1eeb53e64159fbb2610ba7810ed511e4d5c10ca";
    };
    flake-compat = {
      url = "github:edolstra/flake-compat";
      flake = false;
    };
  };

  outputs = { self, nixpkgs, flake-compat }:
    let pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in
    {
      devShell.x86_64-linux =
        pkgs.mkShell {
          buildInputs = with pkgs;[
            nixpkgs-fmt
            zig
            zls
          ];
        };
    };
}

the latest version in the nixpkgs repos for zig is zig 0.11.0. To get that version you just need to update the nixpkgs source commit (could look smt like this: inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; ). Else there is an overlay flake (GitHub - mitchellh/zig-overlay: Nix flake for the Zig compiler.) that provides newer packages.