A 43-year-old has been jailed for life for murdering their former partner in a fatal stabbing at his flat.