Combine the garlic, salt, and walnuts in the bowl of a food processor, and pulse a few times. Add the basil, mint, lemon juice, and a pinch of black pepper and red pepper flakes, and pulse once or twice to combine and roughly chop. With the motor running, add the olive oil in a steady stream, and process until combined, but still a bit chunky.