Fetching details from the dictionary...
nailing on; nailing down; nailing shut; being glued (to); being unable to take one's eyes (from)
being stationary; being rooted to the spot; halting; freezing
(price) pegging
目が釘付けになった。
Eyes were glued to it.
その絵に釘付けになって動けなかった。
Got so absorbed in the painting that I could not move.
子どもたちは魔法使いの演技に釘付けになっていた。
The children were glued to the magician's performance.