incz is a very rudimentary log shipper for zinc search

although it probably would work with elasticsearch as well
as zinc is alleged to be ES-compatible

this is just the package and needs hooking into the service/log
infrastructure somehow
This commit is contained in:
Daniel Barlow
2024-09-08 16:38:37 +01:00
parent 69bf6cb5fb
commit aaa6e353db
3 changed files with 97 additions and 0 deletions

38
pkgs/incz/default.nix Normal file
View File

@@ -0,0 +1,38 @@
{
fetchurl,
writeFennel,
fennel,
fennelrepl,
runCommand,
lua,
anoia,
lualinux,
stdenv
}:
let name = "incz";
in stdenv.mkDerivation {
inherit name;
src = ./.;
buildInputs = [lua];
nativeBuildInputs = [fennelrepl];
buildPhase = ''
fennelrepl --test ./incz.fnl
cp -p ${writeFennel name {
packages = [
anoia
lualinux
fennel
];
macros = [
anoia.dev
];
mainFunction = "run";
} ./incz.fnl } ${name}
'';
installPhase = ''
install -D ${name} $out/bin/${name}
'';
}