2024-12-07 15:30:42 +01:00
|
|
|
{ sources, pkgs }:
|
2023-07-21 00:37:05 +02:00
|
|
|
|
|
|
|
let
|
2024-12-07 15:30:42 +01:00
|
|
|
# TODO: move this into a proper overlay of `pkgs` so that we don't need to track this for every and any package.
|
|
|
|
colmena = pkgs.callPackage ../lib/colmena {
|
|
|
|
colmena = pkgs.callPackage "${sources.colmena}/package.nix" { };
|
|
|
|
};
|
|
|
|
|
2024-11-14 22:18:40 +01:00
|
|
|
inherit (pkgs.lib) mapAttrs;
|
|
|
|
|
|
|
|
inherit (pkgs)
|
|
|
|
writeShellApplication
|
|
|
|
jq
|
|
|
|
nvd
|
|
|
|
;
|
2024-11-14 22:01:58 +01:00
|
|
|
|
|
|
|
scripts = {
|
|
|
|
cache-node = [ colmena ];
|
|
|
|
check-deployment = [
|
2023-07-21 00:37:05 +02:00
|
|
|
colmena
|
2024-02-02 10:51:31 +01:00
|
|
|
jq
|
2024-11-14 22:01:58 +01:00
|
|
|
nvd
|
|
|
|
];
|
|
|
|
launch-vm = [ colmena ];
|
|
|
|
list-nodes = [ jq ];
|
2023-07-21 00:37:05 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2024-11-14 22:18:40 +01:00
|
|
|
mapAttrs (
|
2024-11-14 22:01:58 +01:00
|
|
|
name: runtimeInputs:
|
|
|
|
writeShellApplication {
|
|
|
|
inherit name runtimeInputs;
|
|
|
|
|
|
|
|
text = builtins.readFile ./${name}.sh;
|
|
|
|
}
|
|
|
|
) scripts
|