The first is understandable and marginally acceptable usage, but neither is used in English. You'd say one of the following instead: It's a 5 minute walk from here. It's 5 minutes from here if you walk.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.