feat(ubus): support for Lua 5.3
Some checks failed
build liminix / build_vm_qemu_mips (push) Failing after 27s
Some checks failed
build liminix / build_vm_qemu_mips (push) Failing after 27s
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
54db2ad006
commit
036f91d2f0
1 changed files with 8 additions and 7 deletions
|
@ -1,13 +1,14 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, libubox, json_c, lua5_1, defaultSocketLocation ? "/run/ubus/ubus.sock" }:
|
{ stdenv, fetchFromGitea, lib, cmake, libubox, json_c, lua, defaultSocketLocation ? "/run/ubus/ubus.sock" }:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ubus";
|
pname = "ubus";
|
||||||
version = "unstable-04-09-2024";
|
version = "unstable-04-09-2024";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitea {
|
||||||
owner = "openwrt";
|
domain = "git.dgnum.eu";
|
||||||
|
owner = "DGNum";
|
||||||
repo = "ubus";
|
repo = "ubus";
|
||||||
rev = "65bb027054def3b94a977229fd6ad62ddd32345b";
|
rev = "ebb1dc92e4985538a8e18b7e926264118138f281";
|
||||||
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
|
hash = "sha256-fo4zleC9R6uzlcOJ/jQ0t0nSBHUAq/uqPVd9xJdkAM0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# We don't use /var/run/ in Liminix by default.
|
# We don't use /var/run/ in Liminix by default.
|
||||||
|
@ -21,14 +22,14 @@ stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
lua5_1
|
lua
|
||||||
libubox
|
libubox
|
||||||
json_c
|
json_c
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_LUA=on"
|
"-DBUILD_LUA=on"
|
||||||
"-DLUAPATH=${placeholder "out"}/lib/lua"
|
"-DLUAPATH=${placeholder "out"}/lib/lua/${lua.luaversion}"
|
||||||
"-DBUILD_EXAMPLES=off"
|
"-DBUILD_EXAMPLES=off"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue