resources and patches should be defined above `def install`