how to wire outlet in the box that lacks neutral?
No, you cannot legally install an outlet without a neutral. Using the ground wire in its place is illegal and potentially dangerous. Moreover, the neutral wire must be in the same bundle as the hot wire to avoid eddy currents that could cause heating. 

If the hot is in a conduit, you can simply pull a new wire. If it’s using NMB (Romex), probably -2 from the fixture, you’ll need to replace it with -3.