1 { stdenv, lib, fetchgit, cmake, pkg-config, libubox }:
5 version = "unstable-2023-04-13";
8 url = "https://git.openwrt.org/project/uclient.git";
9 rev = "007d945467499f43656b141171d31f5643b83a6c";
10 hash = "sha256-A47dyVc2MtOL6aImZ0b3SMWH2vzjfAXzRAOF4nfH6S0=";
13 nativeBuildInputs = [ cmake pkg-config ];
14 buidInputs = [ libubox ];
17 sed -e 's|ubox_include_dir libubox/ustream-ssl.h|ubox_include_dir libubox/ustream-ssl.h HINTS ${libubox}/include|g' \
18 -e 's|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox}/lib|g' \
23 description = "Tiny OpenWrt fork of libnl";
24 homepage = "https://git.openwrt.org/?p=project/uclient.git;a=summary";
25 license = licenses.isc;
26 maintainers = with maintainers; [ mkg20001 ];
27 mainProgram = "uclient-fetch";
28 platforms = platforms.all;