liminix/pkgs/devout/default.nix

27 lines
480 B
Nix
Raw Normal View History

2024-04-20 16:45:40 +00:00
{
lua
, 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" {
2024-04-25 20:14:37 +00:00
packages = [fennel anoia nellie lualinux];
2024-04-20 16:45:40 +00:00
mainFunction = "run";
} ./devout.fnl} $out/bin/devout
'';
}