infrastructure/scripts/default.nix

32 lines
470 B
Nix
Raw Normal View History

{ pkgs, ... }:
let
substitutions = {
inherit (pkgs)
bash
colmena
coreutils
nvd
git
jq;
};
mkShellScript = name: (pkgs.substituteAll ({
inherit name;
src = ./. + "/${name}.sh";
dir = "/bin/";
isExecutable = true;
checkPhase = ''
${pkgs.stdenv.shellDryRun} "$target"
'';
} // substitutions));
scripts = [
"check-deployment"
"launch-vm"
];
in
builtins.map mkShellScript scripts