Wal-Mart Stores Inc is in talks to buy a minority stake in India's largest e-commerce firm Flipkart, two people familiar with the matter said.