Fix mkData
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user