Derivative generation for hydra