Probably related to #5592 (and the ability to use artifacts across contexts) but it will be interesting to tell to dune to install an artifact which is only available from a specific context such as:
(rule
(target unikernel.hvt)
(enabled_if (= %{context_name} "solo5"))
(deps unikernel/main.exe)
(action (bash "strip %{deps} -o %{target}")))
(install
(files unikernel.hvt)
(enabled_if (= %{context_name} "solo5"))
(section bin)
(package my-unikernel))
As far as I can tell, the produced my-unikernel.install mentions only artifacts from the default context. From the example above, dune also complains that unikernel.hvt does not exist for @default and @all (which is... expected?).