2024-09-04 16:30:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libubox, json_c, lua5_1 }:
|
2024-09-04 15:53:26 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ubus";
|
|
|
|
version = "unstable-04-09-2024";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openwrt";
|
|
|
|
repo = "ubus";
|
|
|
|
rev = "65bb027054def3b94a977229fd6ad62ddd32345b";
|
|
|
|
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-09-04 16:30:44 +02:00
|
|
|
lua5_1
|
2024-09-04 15:53:26 +02:00
|
|
|
libubox
|
|
|
|
json_c
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-09-04 16:30:44 +02:00
|
|
|
"-DBUILD_LUA=on"
|
|
|
|
"-DLUAPATH=${placeholder "out"}/lib/lua"
|
2024-09-04 15:53:26 +02:00
|
|
|
"-DBUILD_EXAMPLES=off"
|
|
|
|
];
|
|
|
|
}
|