This is an excerpt from An Anonymous Andalusian Cookbook
(Andalusia, 13th c. - Charles Perry, trans.)
The original source can be found at
David Friedman's website
Preparation of What is known as Fustuqiyya of Sugar. Take half a ratl of sugar and three ûqiyas of almond oil, two of fine flour and three of pounded pistachios. Cook it all together on the fire until it binds together and cut it with musk and clove, if God wishes.