Building godot on nix-darwin

system and nix version

nix 2.18.1, MacOS 14.4.1, MacBook Air M1 2020

Context

To build my game project with its custom modules, I build Godot from source, with the help of a Flake. This originally started as a way to get Godot 4 on nix, but now is more a tool to build Godot on demand.

I have started rewriting this flake to add support for MacOS, but so far, I’m stuck at compiling against the apple SDK.
Here is the relevant part :
godot/darwin.nix

And here’s the relevant part of the build log :

[Initial build] Compiling platform/macos/godot_button_view.mm
In file included from platform/macos/macos_terminal_logger.mm:35:
In file included from /nix/store/z45c7c6xfqqv3zswwba9ifbjnryj2iml-libSystem-11.0.0/include/os/log.h:13:
/nix/store/z45c7c6xfqqv3zswwba9ifbjnryj2iml-libSystem-11.0.0/include/os/object.h:111:9: fatal error: 'objc/NSObject.h' file not found
#import <objc/NSObject.h>
        ^~~~~~~~~~~~~~~~~
[Initial build] 
[Initial build] Compiling platform/macos/display_server_macos.mm ...
1 error generated.
scons: *** [platform/macos/macos_terminal_logger.macos.editor.arm64.o] Error 1
In file included from platform/macos/os_macos.mm:31:
In file included from platform/macos/os_macos.h:35:
platform/macos/joypad_macos.h:34:9: fatal error: 'CoreHaptics/CoreHaptics.h' file not found
#import <CoreHaptics/CoreHaptics.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from platform/macos/godot_application_delegate.mm:31:
platform/macos/godot_application_delegate.h:36:9: fatal error: 'AppKit/AppKit.h' file not found
#import <AppKit/AppKit.h>
        ^~~~~~~~~~~~~~~~~
In file included from platform/macos/godot_application.mm:31:
platform/macos/godot_application.h:36:9: fatal error: 'AppKit/AppKit.h' file not found
#import <AppKit/AppKit.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
scons: *** [platform/macos/godot_application_delegate.macos.editor.arm64.o] Error 1
scons: *** [platform/macos/godot_application.macos.editor.arm64.o] Error 1
1 error generated.
scons: *** [platform/macos/os_macos.macos.editor.arm64.o] Error 1
In file included from platform/macos/godot_button_view.mm:31:
platform/macos/godot_button_view.h:36:9: fatal error: 'AppKit/AppKit.h' file not found
#import <AppKit/AppKit.h>
        ^~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [platform/macos/godot_button_view.macos.editor.arm64.o] Error 1
In file included from platform/macos/display_server_macos.mm:31:
In file included from platform/macos/display_server_macos.h:38:
platform/macos/gl_manager_macos_angle.h:42:10: fatal error: 'AppKit/AppKit.h' file not found
#include <AppKit/AppKit.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [platform/macos/display_server_macos.macos.editor.arm64.o] Error 1
scons: building terminated because of errors.
[Time elapsed: 00:00:12.473]

What am I supposed to add to have those include and imports work?

Thank you in advance for your help!