Sailfish is based on Meego, which was a merge of Maemo and another project. It was the OS that backed the N9, the last phone Nokia made before they went to MS.
Keep in mind, if you live in the US, that the Jolla is an EU phone, and doesn't support US 3G or 4G frequencies. I was stuck with a Jolla on 2G for a while. Recently I got a OnePlus X and installed Sailfish OS on that, and the experience has been much better.
Jolla was formed by devs that left Nokia after they abandoned Meego. I had an N9 and currently have the Jolla phone with Sailfish. They're very similar.