2023-02-22 10:55:15 +00:00
|
|
|
{ stdenv, lib, fetchgit, cmake, pkg-config, libubox }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "uclient";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-04-13";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/uclient.git";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "007d945467499f43656b141171d31f5643b83a6c";
|
|
|
|
hash = "sha256-A47dyVc2MtOL6aImZ0b3SMWH2vzjfAXzRAOF4nfH6S0=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buidInputs = [ libubox ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's|ubox_include_dir libubox/ustream-ssl.h|ubox_include_dir libubox/ustream-ssl.h HINTS ${libubox}/include|g' \
|
|
|
|
-e 's|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox}/lib|g' \
|
|
|
|
-i CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tiny OpenWrt fork of libnl";
|
|
|
|
homepage = "https://git.openwrt.org/?p=project/uclient.git;a=summary";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
mainProgram = "uclient-fetch";
|
|
|
|
platforms = platforms.all;
|
2024-05-15 15:35:15 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
}
|