2021-01-21 17:00:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
cmake,
|
|
|
|
fetchgit,
|
|
|
|
libubox,
|
|
|
|
libjson,
|
|
|
|
}:
|
2020-02-12 01:01:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ubus";
|
2024-01-22 00:42:11 +00:00
|
|
|
version = "unstable-2023-12-18";
|
2020-02-12 01:01:17 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/ubus.git";
|
2024-01-22 00:42:11 +00:00
|
|
|
rev = "65bb027054def3b94a977229fd6ad62ddd32345b";
|
|
|
|
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
|
2020-02-12 01:01:17 +00:00
|
|
|
};
|
|
|
|
|
2021-06-10 07:32:50 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_LUA=OFF" ];
|
2020-02-12 01:01:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
libubox
|
|
|
|
libjson
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2024-05-14 07:27:25 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString (
|
|
|
|
lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
|
|
|
|
"-Wno-error=gnu-folding-constant"
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-12 01:01:17 +00:00
|
|
|
description = "OpenWrt system message/RPC bus";
|
|
|
|
homepage = "https://git.openwrt.org/?p=project/ubus.git;a=summary";
|
2021-06-10 07:32:50 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2020-02-12 01:01:17 +00:00
|
|
|
platforms = platforms.all;
|
2023-11-24 03:45:37 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
2020-02-12 01:01:17 +00:00
|
|
|
};
|
|
|
|
}
|