Yeah I thought about something like that, but this wall is rather thick! I think the exterior surface is flat enough (just) ... or with a bit of chiselling it could be made flat enough
.
Just need to figure out how to do the slamming side now ... the gate will close flush onto a dry stone wall (well, dry ish, with a bit of cement here and there). I think it'll be a matter of cementing in an eyelet or latch.