iso: fix replaceStrings length mismatch in cleanVersion

builtins.replaceStrings requires the 'from' and 'to' lists to have the
same length. The 'to' list had a single empty string while 'from' had
three entries (v, newline, CR), which made evaluating image.baseName
fail with: 'from' and 'to' arguments passed to builtins.replaceStrings
have different lengths. Add the two missing empty strings.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This commit is contained in:
naturallaw777
2026-08-05 15:38:21 +00:00
co-authored by arena-agent
parent dda6fb8e91
commit f81b27cc19
+1 -1
View File
@@ -9,7 +9,7 @@ let
else "dev"; else "dev";
# Clean version (remove 'v' prefix and newlines) # Clean version (remove 'v' prefix and newlines)
cleanVersion = builtins.replaceStrings ["v" "\n" "\r"] [""] versionFile; cleanVersion = builtins.replaceStrings ["v" "\n" "\r"] ["" "" ""] versionFile;
pythonEnv = pkgs.python3.withPackages (ps: [ ps.pygobject3 ps.pycairo ]); pythonEnv = pkgs.python3.withPackages (ps: [ ps.pygobject3 ps.pycairo ]);