nixpkgs/pkgs/development/libraries/ubus/default.nix

25 lines
711 B
Nix
Raw Normal View History

{ lib, stdenv, cmake, fetchgit, libubox, libjson }:
2020-02-12 01:01:17 +00:00
stdenv.mkDerivation {
pname = "ubus";
version = "unstable-2021-02-15";
2020-02-12 01:01:17 +00:00
src = fetchgit {
url = "https://git.openwrt.org/project/ubus.git";
rev = "2537be01858710e714c329153760c64fe3f8a73e";
sha256 = "03ljxsn4w87bfrilccxhrkzqmd30hy6ihkvsinw0i3l7rpp5m4a7";
2020-02-12 01:01:17 +00:00
};
cmakeFlags = [ "-DBUILD_LUA=OFF" ];
2020-02-12 01:01:17 +00:00
buildInputs = [ libubox libjson ];
nativeBuildInputs = [ cmake ];
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";
license = licenses.lgpl21Only;
2020-02-12 01:01:17 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ petabyteboy ];
};
}