Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions flattenTree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ let
op = sum: path: val:
let
pathStr = builtins.concatStringsSep "/" path;
tryCheckSet = builtins.tryEval ((builtins.typeOf val) == "set");
in
if (builtins.typeOf val) != "set" then
# ignore that value
if !tryCheckSet.value then
# ignore anything thats not a set or throws an error
# builtins.trace "${pathStr} is not of type set"
sum
else if val ? type && val.type == "derivation" then
Expand Down