1
0
liminix/pkgs/devout/default.nix

33 lines
549 B
Nix
Raw Normal View History

{
nellie,
writeFennel,
anoia,
fennel,
stdenv,
fennelrepl,
lualinux,
2024-04-20 16:45:40 +00:00
}:
stdenv.mkDerivation {
name = "devout";
src = ./.;
nativeBuildInputs = [ fennelrepl ];
postBuild = ''
LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
fennelrepl ./test.fnl
'';
2024-04-20 16:45:40 +00:00
installPhase = ''
mkdir -p $out/bin
cp -p ${
writeFennel "devout" {
packages = [
fennel
anoia
nellie
lualinux
];
mainFunction = "run";
} ./devout.fnl
} $out/bin/devout
2024-04-20 16:45:40 +00:00
'';
}