2023-07-21 00:37:05 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
substitutions = {
|
|
|
|
inherit (pkgs)
|
|
|
|
bash
|
|
|
|
colmena
|
|
|
|
coreutils
|
2024-01-07 10:20:46 +01:00
|
|
|
nvd
|
2023-10-03 01:07:18 +02:00
|
|
|
git
|
|
|
|
jq;
|
2023-07-21 00:37:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
mkShellScript = name: (pkgs.substituteAll ({
|
|
|
|
inherit name;
|
|
|
|
src = ./. + "/${name}.sh";
|
|
|
|
dir = "/bin/";
|
|
|
|
isExecutable = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${pkgs.stdenv.shellDryRun} "$target"
|
|
|
|
'';
|
|
|
|
} // substitutions));
|
|
|
|
|
|
|
|
scripts = [
|
2023-12-17 12:03:07 +01:00
|
|
|
"check-deployment"
|
2023-10-03 01:07:18 +02:00
|
|
|
"launch-vm"
|
2023-07-21 00:37:05 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
|
|
|
|
builtins.map mkShellScript scripts
|