What to put in your diet to stop cracked fingernails?

Taking calcium supplements might make your nails less brittle, because I know personally that calcium pills make nails and hair grow really fast. So I'm guessing it might strenghten nails too.