The main building blocks of a ROCK are parts.
Rockcraft parts go through the same lifecycle steps as Charmcraft and Snapcraft parts.
Albeit being fundamentally identical to Snapcraft parts, Rockcraft parts actually offer some extended functionality and keywords:
stage-packages: apart from offering the well-known package installation behaviour, in Rockcraft the
stage-packageskeyword actually supports chiselled packages as well (learn more about Chisel). To install a package slice instead of the whole package, simply follow the Chisel convention <packageName>_<sliceName>.
parts: chisel-openssl: plugin: nil stage-packages: - openssl_bins - ca-certificates_data package-hello: plugin: nil stage-packages: - hello
NOTE: at the moment, it is not possible to mix packages and slices in the same stage-packages field.