liminix/pkgs/devout/default.nix

27 lines
480 B
Nix
Raw Normal View History

2024-04-20 18:45:40 +02:00
{
lua
, nellie
, writeFennel
, anoia
, fennel
, stdenv
, fennelrepl
, lualinux
2024-04-20 18:45:40 +02: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 18:45:40 +02:00
installPhase = ''
mkdir -p $out/bin
cp -p ${writeFennel "devout" {
2024-04-25 22:14:37 +02:00
packages = [fennel anoia nellie lualinux];
2024-04-20 18:45:40 +02:00
mainFunction = "run";
} ./devout.fnl} $out/bin/devout
'';
}