Inventory: restructure folders

This commit is contained in:
Johannes Kirschbauer
2024-06-26 15:16:20 +02:00
parent 3777a4cf02
commit 2535fdcb12
9 changed files with 11 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ rec {
content = getReadme modulename;
parts = lib.splitString "---" content;
# Partition the parts into the first part (the readme content) and the rest (the metadata)
parsed = builtins.partition ({ index }: if index >= 2 then false else true) (
parsed = builtins.partition ({ index, ... }: if index >= 2 then false else true) (
lib.filter ({ index, ... }: index != 0) (lib.imap0 (index: part: { inherit index part; }) parts)
);