32 lines
756 B
Nix
32 lines
756 B
Nix
{ symlinkJoin, writeShellApplication, socat, dash, hectic, curl }:
|
|
let
|
|
base64 = writeShellApplication {
|
|
name = "base64";
|
|
runtimeInputs = [ ];
|
|
text = builtins.readFile ./base64.sh;
|
|
};
|
|
|
|
# TODO: writeDashApplication
|
|
probe = writeShellApplication {
|
|
name = "probe";
|
|
runtimeInputs = [ socat dash probe-loop ];
|
|
text = builtins.readFile ./probe.sh;
|
|
};
|
|
|
|
probe-loop = writeShellApplication {
|
|
name = "probe-loop";
|
|
runtimeInputs = [ base64 ];
|
|
text = builtins.readFile ./probe-loop.sh;
|
|
};
|
|
|
|
sentinel = writeShellApplication {
|
|
name = "sentinel";
|
|
runtimeInputs = [ hectic.shellplot curl ];
|
|
text = builtins.readFile ./sentinel.sh;
|
|
};
|
|
in
|
|
symlinkJoin {
|
|
name = "sentinèlla";
|
|
paths = [ probe sentinel ];
|
|
}
|