divnix / std

A DevOps framework for the SDLC with the power of Nix and Flakes. Good for keeping deadlines!
https://std.divnix.com
377 stars 41 forks source link

`buildables` block type? #378

Open korrat opened 1 month ago

korrat commented 1 month ago

Both installables and runnables block types provide a build action. However, both block types also provide further actions. This makes them less than ideal for some use cases, such as checks or, in the case of Rust projects, a separate derivation for cargoArtifacts.

A simple buildable block type may be helpful here. This block type would only provide the build action. Projects could use it to provide a set of dependencies that other blocks of the cell could use.

Alternatively, both the anything and functions block types could be used for this purpose. In the case of checks, however, that means that checks can no longer be run individually.