tangled
alpha
login
or
join now
oeiuwq.com
/
flake-aspects
2
fork
atom
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
2
fork
atom
overview
issues
1
pulls
pipelines
constant function.
provides.itself ignores its arguments
oeiuwq.com
4 months ago
1f1b17da
55e9b8a3
+3
-5
1 changed file
expand all
collapse all
unified
split
nix
types.nix
+3
-5
nix/types.nix
···
26
26
chainOnly = hasChain && arity == 1;
27
27
both = hasClass && hasChain && arity == 2;
28
28
in
29
29
-
classOnly || chainOnly || both
29
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
71
-
description = "Provides itself";
71
71
+
description = "Always provides itself";
72
72
type = providerType;
73
73
-
default =
74
74
-
# deadnix: skip
75
75
-
{ class, ... }: aspect;
73
73
+
default = _: aspect;
76
74
};
77
75
}
78
76
);