It currently uses debian's commands to install the packages (apt) when it should use Fedora's (dnf). The list of dependencies also do not include the wayland-devel library package. Stardust Server does not build without it installed.
ASK:
change the fedora dependency section to use dnf instead of apt, and add wayland-devel to the list of dependencies to install.