2023-07-05 19:23:27 +00:00
|
|
|
{
|
2024-09-05 23:11:33 +00:00
|
|
|
bc, # for tests
|
2024-06-30 15:58:29 +00:00
|
|
|
fennel,
|
|
|
|
stdenv,
|
|
|
|
linotify,
|
|
|
|
lua,
|
|
|
|
lualinux,
|
|
|
|
cpio,
|
2023-07-05 19:23:27 +00:00
|
|
|
}:
|
2025-02-10 21:55:08 +00:00
|
|
|
let
|
|
|
|
pname = "anoia";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2023-07-05 19:23:27 +00:00
|
|
|
inherit pname;
|
|
|
|
version = "0.1";
|
|
|
|
src = ./.;
|
2025-02-10 21:55:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
fennel
|
|
|
|
cpio
|
|
|
|
bc
|
|
|
|
];
|
|
|
|
buildInputs = with lua.pkgs; [
|
|
|
|
linotify
|
|
|
|
lualinux
|
|
|
|
];
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2024-04-20 13:59:14 +00:00
|
|
|
|
2024-04-20 13:04:32 +00:00
|
|
|
doCheck = true;
|
2024-04-20 13:59:14 +00:00
|
|
|
|
2023-07-05 19:23:27 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/lua/${lua.luaversion}/${pname}"
|
2024-04-26 15:43:09 +00:00
|
|
|
find . -name \*.lua | cpio -p -d "$out/share/lua/${lua.luaversion}/${pname}"
|
2024-04-20 13:59:14 +00:00
|
|
|
|
|
|
|
mkdir -p "$dev/share/lua/${lua.luaversion}/${pname}"
|
|
|
|
cp assert.fnl "$dev/share/lua/${lua.luaversion}/${pname}"
|
2023-07-05 19:23:27 +00:00
|
|
|
'';
|
|
|
|
}
|