on iko/ghcjs-patch-master help sign in
Remove self from depends of "all" component in the module system
de6a254Will Fancher
modules/package.nix+5
@@ -184,6 +184,11 @@ in {
184 };
184 };
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;
191+ };
187 description = "The merged dependencies of all other components";
192 description = "The merged dependencies of all other components";
188 };
193 };
189 };
194 };