Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

cleanup: give a name to our default composite adapter. (#403)

authored by

Victor Borja and committed by
GitHub
083be369 13ad634a

+8 -4
+7 -3
nix/lib/aspects/adapters.nix
··· 9 9 { lib, ... }: 10 10 let 11 11 12 - # Default adapter imports all classModules on a single module and recurses on includes unconditonally. 12 + # Default adapter used by `resolve`. 13 + default = filterIncludes module; 14 + 15 + # Produces a single module importing all classModules from aspect and its includes. 13 16 module = 14 17 { 15 18 classModule, ··· 87 90 in 88 91 { 89 92 inherit 90 - module 93 + default 91 94 filter 95 + filterIncludes 92 96 map 93 97 mapAspect 94 98 mapIncludes 95 - filterIncludes 99 + module 96 100 ; 97 101 }
+1 -1
nix/lib/aspects/resolve.nix
··· 56 56 in 57 57 go [ ]; 58 58 59 - resolve = withAdapter (adapters.filterIncludes adapters.module); 59 + resolve = withAdapter adapters.default; 60 60 61 61 in 62 62 {