I have just managed to get the psp version of enigma compiling and linking for ds, but since unlike pretty much every other platform enigma is on there is no opengl (no similar library like gx/PSGL either) so the graphics system will have to be written completely from scratch. Since it would just be 2d stuff i was either thinking of using PAlib which would be ds only or SDL which might allow easier porting to other platforms in the future.
But the ds brings alot of problems for the development process, enigma can't just write the resources to the end of the file, or even write to a data file like it does on psp, the sprites need to be converted at compile time using a tool that comes with the ds sdk. Which means enigma would need to have a different system where it exports images as png to a specific folder, so requires specific ds code in the compiler :/
The other obvious problem is the ds is a much more limited system so probably runs the games painfully slow and ofc as we don't have a graphics system I can't test that.
But at least it compiles and links
The .nds binary it creates is 723kb, i'm not sure how big this is compared to other nds games/homebrew or if it will be a problem.