Source of the melody of this Irish song from the American Civil War?

In defense of 19th century Irish Americans, most contemporary pop music has cheesy melodramatic ham-handed lyrics too.

OP have you ever heard Paddy’s Lamentation? It seems like it’d be right up your alley.