2024-04-20 18:45:40 +02:00
|
|
|
{
|
|
|
|
lua
|
|
|
|
, nellie
|
|
|
|
, writeFennel
|
|
|
|
, anoia
|
|
|
|
, fennel
|
|
|
|
, stdenv
|
|
|
|
, fennelrepl
|
2024-04-24 00:33:11 +02:00
|
|
|
, lualinux
|
2024-04-20 18:45:40 +02:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "devout";
|
|
|
|
src = ./.;
|
2024-04-27 21:57:17 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|