lib: add stripAttr

This commit is contained in:
lassulus 2020-04-18 18:48:54 +02:00
parent eb15765624
commit 54827be4cc

View File

@ -49,6 +49,8 @@ let
indent = replaceChars ["\n"] ["\n "];
stripAttr = converge (filterAttrsRecursive (n: v: v != {} && v != null));
mapNixDir = f: x: {
list = foldl' mergeAttrs {} (map (mapNixDir1 f) x);
path = mapNixDir1 f x;