libubox: unstable-2021-03-09 -> unstable-2023-01-03

This commit is contained in:
Maciej Krüger 2023-02-08 20:36:47 +01:00
parent 09d38c4d14
commit 857052b13a
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -1,19 +1,19 @@
{ stdenv, lib, fetchgit, cmake, pkg-config, json_c }:
{ stdenv, lib, fetchgit, cmake, pkg-config, json_c, with_lua ? false, lua5_1 }:
stdenv.mkDerivation {
pname = "libubox";
version = "unstable-2021-03-09";
version = "unstable-2023-01-03";
src = fetchgit {
url = "https://git.openwrt.org/project/libubox.git";
rev = "551d75b5662cccd0466b990d58136bdf799a804d";
sha256 = "05cnjjqjv9nvrs1d8pg4xxxf27jryiv6xk8plmdpmm7r2wkvwn3r";
rev = "eac92a4d5d82eb31e712157e7eb425af728b2c43";
sha256 = "0w6mmwmd3ljhkqfk0qswq28dp63k30s3brlgf8lyi7vj7mrhvn3c";
};
cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];
cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" (if with_lua then "-DLUAPATH=${placeholder "out"}/lib/lua" else "-DBUILD_LUA=OFF") ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ json_c ];
buildInputs = [ json_c ] ++ lib.optional with_lua lua5_1;
meta = with lib; {
description = "C utility functions for OpenWrt";