Carefully drill a 1/8" hole in the exact center of the hinge. It needs to be centered or the hinge will not open well.
I got the hole a little to the right on this hinge. You may need to cut a few hinges to get two good ones. This one was usable but just barely.
Use a #1 blade and carefully cut on the line.
Notice the hole is drilled too far to the right in this hinge. It will still work but it would be better if it were centered better.
Round over the hinge so it opens smoothly. Use a 1/8" dowel while you are testing the opening and closing of the hinge.
Trim the dowel a little long on each end.
Apply glue to each end of the dowel to keep it secured in the hinge.
Trim the length of one half of the hinge to match the thickness of the top of your box. Notice I also sanded the dowel flush with the hinge body.
Here is the hinge mounted to the back and top of the box. The lid is closed.
If everything went well the box should open and close flush with the box.