Sufism borrows religious beliefs and rituals from what religion?

Most of Sufis' religious beliefs and rituals come from orthodox Islam, but some also come from Gnostic Christianity, Judaism, Hinduism, and Zoroastrianism.