In a food processor, pulse all the ingredients with 1 cup/240ml water until coarsely chopped (if using fresh apricots, omit the water).
Transfer the paste to a saucepan and sauté over medium heat for 2 minutes. Cover and cook for 10 to 15 minutes, until slightly glazed. Adjust the seasoning to taste.
Transfer to a glass container and serve as needed.