move one function lower

no reason for this change I just felt like it
This commit is contained in:
jacekpoz 2024-09-12 20:22:13 +02:00
parent 66a5dcf5d4
commit a022e735b0
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -43,12 +43,6 @@ pkgs: src: {extraArgs, entries, templates}: let
in
applyTemplate newEntry foundTemplateFile;
processEntryFile = entryFile: let
entry = getEntry entryFile;
foundTemplateFile = findTemplateFile entry;
in
applyTemplate entry foundTemplateFile;
replaceSuffix = from: to: string:
if !(hasSuffix from string) then
abort "invalid suffix `${from}` for string `${string}`"
@ -84,6 +78,12 @@ pkgs: src: {extraArgs, entries, templates}: let
else
entry;
processEntryFile = entryFile: let
entry = getEntry entryFile;
foundTemplateFile = findTemplateFile entry;
in
applyTemplate entry foundTemplateFile;
in /*sh*/''
${concatMapStrings
(result: /*sh*/''