Import all nix files in a directory tree. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic inputs
3
fork

Configure Feed

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

Add import-tree.new

+20
+5
README.md
··· 292 292 import-tree.leafs 293 293 ``` 294 294 295 + ### `import-tree.new` 296 + 297 + Returns a fresh import-tree with empty state. If you previously had any path, lib, filter, etc, 298 + you might need to set them on the new empty tree. 299 + 295 300 ### `import-tree.result` 296 301 297 302 Exactly the same as calling the import-tree object with an empty list `[ ]`.
+12
checkmate.nix
··· 113 113 ]; 114 114 }; 115 115 116 + reset."test `new` returns a clear state" = { 117 + expr = lib.pipe lit [ 118 + (i: i.addPath ./tree/x) 119 + (i: i.addPath ./tree/a/b) 120 + (i: i.new) 121 + (i: i.addPath ./tree/modules/hello-world) 122 + (i: i.withLib lib) 123 + (i: i.leafs.result) 124 + ]; 125 + expected = [ ./tree/modules/hello-world/mod.nix ]; 126 + }; 127 + 116 128 addAPI."test extends the API available on an import-tree object" = { 117 129 expr = 118 130 let
+3
default.nix
··· 110 110 111 111 # Applies empty (for already path-configured trees) 112 112 result = (self f) [ ]; 113 + 114 + # returns the original empty state 115 + new = callable; 113 116 }; 114 117 }; 115 118 in