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