rebuilding minimised nix files
This commit is contained in:
+300
-300
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,7 @@ let
|
|||||||
trim = lib.strings.trim;
|
trim = lib.strings.trim;
|
||||||
# ---------- minimal INI-ish parser (sections + raw lines) ----------
|
# ---------- minimal INI-ish parser (sections + raw lines) ----------
|
||||||
readMaybe = p: if builtins.pathExists p then builtins.readFile p else "";
|
readMaybe = p: if builtins.pathExists p then builtins.readFile p else "";
|
||||||
normalizeLine = l: trim (l`ib.replaceStrings [ "\r" ] [ "" ] l);
|
normalizeLine = l: trim (lib.replaceStrings [ "\r" ] [ "" ] l);
|
||||||
parseSections = text:
|
parseSections = text:
|
||||||
let
|
let
|
||||||
lines = map normalizeLine (lib.splitString "\n" text);
|
lines = map normalizeLine (lib.splitString "\n" text);
|
||||||
|
|||||||
Reference in New Issue
Block a user