Derive the formula for self-inductance of a solenoid?

Derive the formula for self-inductance of a solenoid?