28 lines
378 B
Nix
28 lines
378 B
Nix
{
|
|
writeShellApplication,
|
|
bash,
|
|
coreutils,
|
|
curl,
|
|
jq,
|
|
pup,
|
|
}:
|
|
|
|
writeShellApplication {
|
|
name = "generate";
|
|
runtimeInputs = [
|
|
bash
|
|
coreutils
|
|
curl
|
|
jq
|
|
pup
|
|
];
|
|
text = ''
|
|
shopt -s globstar
|
|
for vars in distros/**/*.pkrvars.hcl.sh; do
|
|
bash "./''${vars}"
|
|
done
|
|
set -x
|
|
echo "BUILD=$(date "+%Y.%m.%d.%H")" >> build.env
|
|
'';
|
|
}
|