Cannot use nix develop on x86_64-darwin

Hi,
I have a nix flake which runs fine on linux but when running on a 64-bit intel mac circa. 2013 the following error is thrown

error: flake 'git+file:///Users/soul/?dir=Sources/Libraries/Common/scripts' does not provide attribute 'devShells.x86_64-darwin.default', 'devShell.x86_64-darwin', 'packages.x86_64-darwin.default' or 'defaultPackage.x86_64-darwin'
       Did you mean devShells?

Checking the system in nix repl returns x86_64-darwin

below is my flake.nix


{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";

  outputs = { self, nixpkgs }:
    let
      currentSystem = builtins.currentSystem;
      pkgs = import nixpkgs { system = currentSystem; };
      hello = pkgs.stdenv.mkDerivation {
        name = "hello";
        src = builtins.fetchGit { url = “https://github.com/gitGNU/gnu_hello.git";
                                  ref = “master”;
                                  rev = "4339e6dd3c49742640c9a833bd978ab2000d5e9d"; };
        nativeBuildInputs = with pkgs; [
          gcc 
        ];
        buildInputs = with pkgs; [
          gcc
        ];
      };
    in
      {
        devShells.x86_64-linux.default = pkgs.mkShell {
          packages = [
            pkgs.git
            pkgs.cmake
            pkgs.gcc
          ];
        };
      };
}

Thanks.

greetings !

you need to set

devShells.x86_64-darwin.default

for flakes its common to use something like this

so that attributes for all systems are set.

also, i think builtins.currentSystem shouldn’t work in flake