I managed to compile successfully on my MPB M1 using the build.sh found in the main directory and Homebrew
Prior to this I had to install the following package. This was not obvious from the start, so I compiled and install missing package, each time the build broke 
brew install adwaita-icon-theme cmake desktop-file-utils exiv2 gettext git glib gmic gphoto2 graphicsmagick gtk+3 gtk-mac-integration icu4c intltool iso-codes json-glib jsonschema lensfun libavif libheif librsvg libsecret libsoup@2 little-cms2 lua libomp ninja openexr openjpeg osm-gps-map portmidi pugixml sdl2 cmocka curl perl jpeg llvm po4a
By default, darktable will be installed in /opt. /opt directory is owned by root:admin. To change the install directory, use the argument --prefix
./build.sh --prefix /User/<yourUsername>
If you still want to install in the default /opt, I suggest you build with argument --sudo
./build.sh --sudo
The script will print a command to install dt:
sudo cmake --build "<some directory>/darktable/build" --target install -- -j8
Once installed, you can start darktable from shell:
/opt/darktable/bin/darktable
Or add /opt/darktable/bin to your $PATH in ~/.zprofile
export PATH="/opt/darktable/bin:$PATH"
The first time I run the command, the window displayed outside the screen. I had to open Mission Control (F3) to find it and move it.
Hope this helps a bit.
Next step: building the .app bundle.
gtk-mac-bundler-0.7.4 creates a packaging/macos/darktable.bundle file
But lot of file are missing or in other paths…