2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchgit, cmake, pkg-config, json_c }:
|
2017-10-01 19:33:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-02-12 00:57:19 +00:00
|
|
|
pname = "libubox";
|
2021-06-10 07:32:50 +00:00
|
|
|
version = "unstable-2021-03-09";
|
2017-10-01 19:33:28 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/libubox.git";
|
2021-06-10 07:32:50 +00:00
|
|
|
rev = "551d75b5662cccd0466b990d58136bdf799a804d";
|
|
|
|
sha256 = "05cnjjqjv9nvrs1d8pg4xxxf27jryiv6xk8plmdpmm7r2wkvwn3r";
|
2017-10-01 19:33:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-10-01 19:33:28 +00: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;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "jshn";
|
|
|
|
platforms = platforms.all;
|
2017-10-01 19:33:28 +00:00
|
|
|
};
|
|
|
|
}
|