It's a direct borrowing of the French word "ennui," which roughly translates to "boredom" or "listlessness."