But there are so much packages depend on libinput, every time I want to update my system I have to rebuild the world, which takes tons of time. Recently I found replaceDependency which may solve my problem, but it patches single derivation.
So my question is: is there a way to apply replaceDependency on all packages introduced by the system configuration? Or can I apply it on the final system derivation when I run nixos-rebuild ?