Use nix to do builds

This commit is contained in:
Greg Hellings
2024-07-13 03:03:14 -05:00
parent bfae3e9854
commit 4dd414cc09
5 changed files with 21 additions and 19 deletions
+3
View File
@@ -1,15 +1,18 @@
{
writeShellApplication,
findutils,
packer,
...
}:
writeShellApplication {
name = "validate";
runtimeInputs = [
findutils
packer
];
text = ''
shopt -s globstar
find "${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
packer init sources
for vars in distros/**/*.pkrvars.hcl; do
packer validate -except=upload "-var-file=''${vars}" sources/