it is formed in hydrothermal veins with other sulfides of copper iron and nickel