I’m using nixos-unstable and build fails when I run sudo nixos-rebuild switch --upgrade because of the popsicle package which is currently broken.

This is preventing me from updating any of the packages on my system, this is not a rare event, I’m often stuck and unable to rebuild because of a single broken package.

Is there a way to skip broken packages update and update everything else? Or any automatic way to have an older working version of popsicle and a new version for everything else?

I know I could manually pin popsicle to a stable release, but I really don’t want to do it manually each time, for every package that breaks, monitor every bug report, and restore changes when it is fixed.