Good point, nonSourcePredicate
is already a nightmare to manage with e.g. dotnet, see Identifying a package's closure, I’d like to avoid a repeat.
Also this should also consider the problems infrastructure: [RFC 0127] Nixpkgs "problem" infrastructure by piegamesde · Pull Request #127 · NixOS/rfcs · GitHub