fake.modules transposition for aspect-oriented Dendritic Nix. with cross-aspect dependencies. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix aspect oriented

constant function.

provides.itself ignores its arguments

+3 -5
+3 -5
nix/types.nix
··· 26 26 chainOnly = hasChain && arity == 1; 27 27 both = hasClass && hasChain && arity == 2; 28 28 in 29 - classOnly || chainOnly || both 29 + arity == 0 || classOnly || chainOnly || both 30 30 ); 31 31 32 32 functionProviderType = lib.types.either functionToAspect (lib.types.functionTo providerType); ··· 68 68 config._module.args.provides = config; 69 69 options.itself = lib.mkOption { 70 70 readOnly = true; 71 - description = "Provides itself"; 71 + description = "Always provides itself"; 72 72 type = providerType; 73 - default = 74 - # deadnix: skip 75 - { class, ... }: aspect; 73 + default = _: aspect; 76 74 }; 77 75 } 78 76 );