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";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "unstable-2021-02-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/ubus.git";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = "2537be01858710e714c329153760c64fe3f8a73e";
|
|
|
|
sha256 = "03ljxsn4w87bfrilccxhrkzqmd30hy6ihkvsinw0i3l7rpp5m4a7";
|
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 ];
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ petabyteboy ];
|
|
|
|
};
|
|
|
|
}
|