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
providers take explicit arguments
oeiuwq.com
4 months ago
895538b1
c1773064
+6
-2
1 changed file
expand all
collapse all
unified
split
nix
types.nix
+6
-2
nix/types.nix
···
26
26
chainOnly = hasChain && arity == 1;
27
27
both = hasClass && hasChain && arity == 2;
28
28
in
29
29
-
arity == 0 || classOnly || chainOnly || both
29
29
+
classOnly || chainOnly || both
30
30
);
31
31
32
32
functionProviderType = lib.types.either functionToAspect (lib.types.functionTo providerType);
···
74
74
visible = false;
75
75
description = "Functor to default provider";
76
76
type = lib.types.functionTo providerType;
77
77
-
default = aspect: _: aspect;
77
77
+
default =
78
78
+
aspect:
79
79
+
# deadnix: skip
80
80
+
{ class, aspect-chain }:
81
81
+
aspect;
78
82
};
79
83
options.resolve = lib.mkOption {
80
84
internal = true;