How to deduct the cost of a computer I built?

I make YouTube videos and needed a new computer, got a 1099-MISC. I bought all the parts separately and then built the computer. Would I deduct the cost of parts separately or can I add the costs together and deduct the total amount I spent on the computer?