Apply nixfmt to the whole tree
This commit is contained in:
+19
-19
@@ -1,23 +1,23 @@
|
||||
{
|
||||
writeShellApplication,
|
||||
findutils,
|
||||
packer,
|
||||
...
|
||||
writeShellApplication,
|
||||
findutils,
|
||||
packer,
|
||||
...
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "validate";
|
||||
runtimeInputs = [
|
||||
findutils
|
||||
packer
|
||||
];
|
||||
text = ''
|
||||
shopt -s globstar
|
||||
if [ -e "''${PACKER_CONFIG_DIR}" ]; then
|
||||
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
|
||||
fi
|
||||
packer init sources
|
||||
for vars in distros/**/*.pkrvars.hcl; do
|
||||
packer validate -except=upload "-var-file=''${vars}" sources/
|
||||
done
|
||||
'';
|
||||
name = "validate";
|
||||
runtimeInputs = [
|
||||
findutils
|
||||
packer
|
||||
];
|
||||
text = ''
|
||||
shopt -s globstar
|
||||
if [ -e "''${PACKER_CONFIG_DIR}" ]; then
|
||||
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
|
||||
fi
|
||||
packer init sources
|
||||
for vars in distros/**/*.pkrvars.hcl; do
|
||||
packer validate -except=upload "-var-file=''${vars}" sources/
|
||||
done
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user