Did you do a search on how to properly charge NiMh batteries?
There is lots of info on the proper sequencing on controlled current and Voltage.
And yes, building your own charger can be done. It just needs to be done properly else you either just kill the battery and/or start a fire.