@deviant thanks, i tried this, but i make very slow progress, and in an unknown direction to be honest... i assume you suggest this because it's better in some way that i don't see.    is `patches` and `substituteAll` run prior to `buildCommand`?    or does defining a `buildCommand` completely override the application of patches?    i want to only package a few files from $src, hence my `buildCommand`, to only `cp` a few files.