Fix mkData

This commit is contained in:
soraefir
2026-05-10 18:42:03 +02:00
parent e53be27e96
commit 7bc9ae1f2d

View File

@@ -37,11 +37,9 @@ in {
mkdir -p $out mkdir -p $out
cp -r ./data/${dir}/. $out/ cp -r ./data/${dir}/. $out/
find $out -type f | while read file; do find $out -type f | while read file; do
${pkgs.replaceVarsWith { ${lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: ''
name = "temp-sub"; substituteInPlace "$file" --replace "@${n}@" "${toString v}"
src = "/dev/null"; # Dummy src, we use the script logic below '') vars)}
replacements = vars;
}}/bin/replace-vars "$file" --replace-inplace
done done
''; '';
host = "host.containers.internal"; host = "host.containers.internal";