2024-04-20 18:45:40 +02:00
|
|
|
{
|
|
|
|
lua
|
|
|
|
, nellie
|
|
|
|
, writeFennel
|
|
|
|
, anoia
|
|
|
|
, fennel
|
|
|
|
, stdenv
|
|
|
|
, fennelrepl
|
2024-04-23 21:15:02 +02:00
|
|
|
, minisock
|
2024-04-20 18:45:40 +02:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "devout";
|
|
|
|
src = ./.;
|
|
|
|
checkInputs = [ fennelrepl ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p ${writeFennel "devout" {
|
2024-04-23 21:15:02 +02:00
|
|
|
packages = [fennel anoia nellie lua.pkgs.luafilesystem minisock];
|
2024-04-20 18:45:40 +02:00
|
|
|
mainFunction = "run";
|
|
|
|
} ./devout.fnl} $out/bin/devout
|
|
|
|
'';
|
|
|
|
checkPhase = ''
|
2024-04-23 21:15:02 +02:00
|
|
|
LUA_CPATH=${minisock}/lib/lua/5.3/?.so\;$LUA_CPATH \
|
2024-04-20 18:45:40 +02:00
|
|
|
fennelrepl ./test.fnl
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
}
|