Unfortunately, we don't allow code to be executed like this from inside `def patches`.
This should use the new `patch...` DSL, and the newlines issue should be handled another way.