2023-07-05 21:23:27 +02:00
|
|
|
{
|
|
|
|
fennel
|
|
|
|
, stdenv
|
|
|
|
, lua
|
2024-04-24 21:44:32 +02:00
|
|
|
, lualinux
|
2023-07-05 21:23:27 +02:00
|
|
|
}:
|
|
|
|
let pname = "anoia";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit pname;
|
|
|
|
version = "0.1";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ fennel ];
|
2024-04-24 21:44:32 +02:00
|
|
|
buildInputs = with lua.pkgs; [ luafilesystem lualinux ];
|
2024-04-20 15:59:14 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2024-04-20 15:04:32 +02:00
|
|
|
doCheck = true;
|
2024-04-20 15:59:14 +02:00
|
|
|
|
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}"
|
2024-04-20 15:59:14 +02:00
|
|
|
|
|
|
|
mkdir -p "$dev/share/lua/${lua.luaversion}/${pname}"
|
|
|
|
cp assert.fnl "$dev/share/lua/${lua.luaversion}/${pname}"
|
2023-07-05 21:23:27 +02:00
|
|
|
'';
|
|
|
|
}
|