logshippers: add victorialogsend script

it's only very lightly tested but it seems to work.  the _stream
may be quite wrong, or perhaps that's a local admin decision anyway
This commit is contained in:
Daniel Barlow
2025-10-06 22:24:33 +01:00
parent 947a1c1373
commit af6e41db7a
2 changed files with 96 additions and 14 deletions

View File

@@ -11,6 +11,14 @@
}:
let
name = "logshippers";
luafy = name : source :
writeFennel name {
packages = [ anoia lualinux fennel ];
macros = [ anoia.dev ];
mainFunction = "run";
} source;
incz = luafy name ./incz.fnl;
victorialogsend = luafy name ./victorialogsend.fnl;
in
stdenv.mkDerivation {
inherit name;
@@ -21,22 +29,13 @@ stdenv.mkDerivation {
buildPhase = ''
fennelrepl --test ./incz.fnl
cp -p ${
writeFennel name {
packages = [
anoia
lualinux
fennel
];
macros = [
anoia.dev
];
mainFunction = "run";
} ./incz.fnl
} ${name}
fennelrepl --test ./victorialogsend.fnl
cp -p ${incz} incz
cp -p ${victorialogsend} victorialogsend
'';
installPhase = ''
install -D ${name} $out/bin/${name}
install -D incz $out/bin/incz
install -D victorialogsend $out/bin/victorialogsend
'';
}