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
|
2024-02-02 10:51:31 +01:00
|
|
|
jq
|
|
|
|
;
|
2023-07-21 00:37:05 +02:00
|
|
|
};
|
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
mkShellScript =
|
|
|
|
name:
|
|
|
|
(pkgs.substituteAll (
|
|
|
|
{
|
|
|
|
inherit name;
|
|
|
|
src = ./. + "/${name}.sh";
|
|
|
|
dir = "/bin/";
|
|
|
|
isExecutable = true;
|
2023-07-21 00:37:05 +02:00
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
checkPhase = ''
|
|
|
|
${pkgs.stdenv.shellDryRun} "$target"
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
// substitutions
|
|
|
|
));
|
2023-07-21 00:37:05 +02:00
|
|
|
|
|
|
|
scripts = [
|
2024-10-09 21:32:38 +02:00
|
|
|
"cache-node"
|
2023-12-17 12:03:07 +01:00
|
|
|
"check-deployment"
|
2023-10-03 01:07:18 +02:00
|
|
|
"launch-vm"
|
2024-02-19 23:14:27 +01:00
|
|
|
"list-nodes"
|
2024-07-24 12:32:39 +02:00
|
|
|
"push-to-nix-cache"
|
2023-07-21 00:37:05 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
|
|
|
|
builtins.map mkShellScript scripts
|