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
test including other aspect functor
oeiuwq.com
4 months ago
520807b1
aa319931
+42
1 changed file
expand all
collapse all
unified
split
checkmate.nix
+42
checkmate.nix
···
394
394
{
395
395
inherit expr expected;
396
396
};
397
397
+
398
398
+
aspects."test override default provider includes" =
399
399
+
let
400
400
+
flake = mkFlake {
401
401
+
flake.aspects =
402
402
+
{ aspects, ... }:
403
403
+
{
404
404
+
aspectOne =
405
405
+
{ aspect, ... }:
406
406
+
{
407
407
+
classOne.bar = [ "should-not-be-present" ];
408
408
+
includes = [ aspects.aspectTwo ];
409
409
+
__functor =
410
410
+
_:
411
411
+
# deadnix: skip
412
412
+
{ class, aspect-chain }:
413
413
+
{
414
414
+
includes = [
415
415
+
{ classOne.bar = [ "from-functor" ]; }
416
416
+
] ++ map (f: f { message = "hello"; }) aspect.includes;
417
417
+
};
418
418
+
};
419
419
+
aspectTwo.__functor =
420
420
+
_:
421
421
+
{ message }:
422
422
+
# deadnix: skip
423
423
+
{ class, aspect-chain }:
424
424
+
{
425
425
+
classOne.bar = [ message ];
426
426
+
};
427
427
+
};
428
428
+
};
429
429
+
430
430
+
expr = (evalMod "classOne" flake.modules.classOne.aspectOne).bar;
431
431
+
expected = [
432
432
+
"hello"
433
433
+
"from-functor"
434
434
+
];
435
435
+
in
436
436
+
{
437
437
+
inherit expr expected;
438
438
+
};
397
439
};
398
440
399
441
};