move one function lower
no reason for this change I just felt like it
This commit is contained in:
parent
66a5dcf5d4
commit
a022e735b0
1 changed files with 6 additions and 6 deletions
12
engine.nix
12
engine.nix
|
@ -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*/''
|
||||
|
|
Loading…
Reference in a new issue