2
0
Files
liminix/pkgs/logshippers/default.nix

43 lines
616 B
Nix
Raw Normal View History

{
fetchurl,
writeFennel,
fennel,
fennelrepl,
runCommand,
lua,
anoia,
lualinux,
stdenv,
}:
let
2025-10-05 15:03:08 +01:00
name = "logshippers";
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}
'';
}