A more interesting task would be to port NxLib to run on top of the
existing NuttX NX Windows System:
* https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139629474
* https://cwiki.apache.org/confluence/display/NUTTX/NX+Graphics+Subsystem
That would not be particularly easier, however. The NX Window System is
purely a windowing system and does not provide any significant graphics
support. X11, by comparison, is a complete graphics system and user
libraries are really only needed to simplify the interfaces and to
extend the graphics capabilities.
You would have to come up with some way to provide the graphics
capability in Nano-X not included in NX Windows.
In the NX Windows world, graphics was intended to be provided by
NxWidgets. That, however, is a work that was never really completed to
production quality. There are also several window managers that use NX
Windows and NxWidgets: NX and Twm4Nx. The latter is a TWM inspired
window manager (but a unique C++ development).