Sutherland's Spoke Length Calculator for 26" wheels.
Hub flange diameter ... measure from spoke hole center to farthest spoke hole center, write that number down.
Determine number of spokes & spoke cross pattern, then find the correct 26" rim being used and subtract that number from the one you wrote down. Spoke Length.