Allow failing derivation

Is it possible to allow building a derivation to fail, possibly also disabling dependent packages?

For example, sometimes building the VirtualBox kernel modules fails when linuxPackages_latest is updated. For me this isn’t an issue most of the time, as I don’t need VirtualBox that often, but want it available when it works and don’t want to have a system rebuild to fail for that reason.