@@ -184,6 +184,11 @@ in {
185 all = mkOption {
185 all = mkOption {
186 type = componentType;
186 type = componentType;
187+ apply = all: all // {
188+ # TODO: Should this check for the entire component
189+ # definition to match, rather than just the identifier?
190+ depends = builtins.filter (p: p.identifier != config.package.identifier) all.depends;
187 description = "The merged dependencies of all other components";
192 description = "The merged dependencies of all other components";