2023-07-05 21:23:27 +02:00
|
|
|
{
|
|
|
|
fennel
|
|
|
|
, stdenv
|
|
|
|
, lua
|
|
|
|
}:
|
|
|
|
let pname = "anoia";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit pname;
|
|
|
|
version = "0.1";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ fennel ];
|
|
|
|
buildPhase = ''
|
2023-07-08 23:15:56 +02:00
|
|
|
for f in *.fnl ; do
|
|
|
|
fennel --compile $f > `basename $f .fnl`.lua
|
|
|
|
done
|
2023-07-05 21:23:27 +02:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/lua/${lua.luaversion}/${pname}"
|
|
|
|
cp *.lua "$out/share/lua/${lua.luaversion}/${pname}"
|
|
|
|
'';
|
|
|
|
}
|