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 ];
|
2023-09-12 19:46:04 +02:00
|
|
|
buildInputs = with lua.pkgs; [ luafilesystem ];
|
2024-04-20 15:04:32 +02:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "make test";
|
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}"
|
|
|
|
'';
|
|
|
|
}
|