Skip to content

Commit

Permalink
Remove comments from lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 12, 2023
1 parent 9adfe20 commit 05fca92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
}:
let
fileLines = file: builtins.split "\n" (lib.fileContents file);
removeComments = builtins.filter (line: line != [ ] && !lib.hasPrefix "#" line);
parseVersions = builtins.map
(line:
let
Expand Down Expand Up @@ -59,7 +60,7 @@
(builtins.listToAttrs
(filterPlugins
(parseVersions
(builtins.filter (x: x != [ ])
(removeComments
(fileLines versionsFile)))));
};
}

0 comments on commit 05fca92

Please sign in to comment.