Unverified Commit 857052b1 authored by Maciej Krüger's avatar Maciej Krüger
Browse files

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

parent 09d38c4d
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
{ 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";