You really have lots of options.
1] A small compressor will run fine on a very long cord if it will start. I have a 1 horse 150 psi oiled that will run fine on 500' of 12ga. Just so you start it flat the 1st time so it warms up it will then cycle as needed. ... Yes, this is some undervoltage use but it is quite short term duty cycle, thus harmless, in your case.
2] Some, or all, nail guns incorporate a plenum that stores enuf air for the cycle. This makes air line length immaterial if you wait a second or so between actuations to allow the plenum to come back up to line pressure. You have control of drive performance by assuring the compressor keeps up and by adjustment of line pressure and pause time per cycle.
... So you can run hundreds of feet of wire if you pay attention to the quality of every connection. Or you can run unlimited air line if you assure the compressor keeps up and the nailer plenum fully recharges between cycles. - Or you can make informed choices combining the two parameters.
Or you could employ a hammer for the low [12 nail set] duty cycle required. :confused3: