Trouble specializing generic functions to act on child systems of an instance of package-inferred-system
Since the default system definition search function which concerns package inferred systems defines child systems exclusively with package-inferred-system
as their class, it is not clear how to specialize generic functions such as around-compile-hook
for those systems without touching asdf internals or defining a method on a built-in asdf class.
The search function already allows subclasses of package-inferred-system to be the primary system, so one solution would be to replace :class package-inferred-system
with :class ,(class-of top)
in sysdef-package-inferred-system-search
(top is the instantiated primary system)