The board of supervisors may use funds derived from the sale for the general purposes of the county, provided that the derived funds are used, in accordance with local, state, and federal law, for the purpose of the fund that had been the source for the acquisition of the property sold.