You need a rehab loan. Banks will actually finance the repairs in your new loan. The home is appraised as if the work were done; you can put down as little as 3.5% of the finished value. You need to arrange for bids from licensed contractors in advance, they will be paid upon completion of the work after it closes.
Ask your lender for an FHA 203k or other rehab loan.