2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchgit, cmake, pkg-config, json_c }:
|
2017-10-01 20:33:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-02-12 00:57:19 +00:00
|
|
|
pname = "libubox";
|
|
|
|
version = "unstable-2020-01-20";
|
2017-10-01 20:33:28 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/libubox.git";
|
2020-02-12 00:57:19 +00:00
|
|
|
rev = "43a103ff17ee5872669f8712606578c90c14591d";
|
|
|
|
sha256 = "0cihgckghamcfxrvqjjn69giib80xhsqaj98ldn0gd96zqh96sd4";
|
2017-10-01 20:33:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-10-01 20:33:28 +01:00
|
|
|
buildInputs = [ json_c ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C utility functions for OpenWrt";
|
|
|
|
homepage = "https://git.openwrt.org/?p=project/libubox.git;a=summary";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|