2023-07-05 21:23:27 +02:00
|
|
|
{
|
|
|
|
fennel
|
|
|
|
, stdenv
|
2024-04-25 22:14:37 +02:00
|
|
|
, linotify
|
2023-07-05 21:23:27 +02:00
|
|
|
, lua
|
2024-04-24 21:44:32 +02:00
|
|
|
, lualinux
|
2024-04-26 17:43:09 +02:00
|
|
|
, cpio
|
2023-07-05 21:23:27 +02:00
|
|
|
}:
|
|
|
|
let pname = "anoia";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit pname;
|
|
|
|
version = "0.1";
|
|
|
|
src = ./.;
|
2024-04-26 17:43:09 +02:00
|
|
|
nativeBuildInputs = [ fennel cpio ];
|
2024-04-25 22:14:37 +02:00
|
|
|
buildInputs = with lua.pkgs; [ linotify 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}"
|
2024-04-26 17:43:09 +02:00
|
|
|
find . -name \*.lua | cpio -p -d "$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
|
|
|
'';
|
|
|
|
}
|