uclient-fetch: init at unstable-2022-02-24
This commit is contained in:
parent
f3ba738bfe
commit
965ceadeb5
30
pkgs/development/libraries/uclient/default.nix
Normal file
30
pkgs/development/libraries/uclient/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, lib, fetchgit, cmake, pkg-config, libubox }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "uclient";
|
||||
version = "unstable-2022-02-24";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.openwrt.org/project/uclient.git";
|
||||
rev = "644d3c7e13c6a64bf5cb628137ee5bd4dada4b74";
|
||||
sha256 = "0vy4whs64699whp92d1zl7a8kh16yrfywqq0yp2y809l9z19sw22";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -19299,6 +19299,8 @@ with pkgs;
|
||||
|
||||
uci = callPackage ../development/libraries/uci { };
|
||||
|
||||
uclient = callPackage ../development/libraries/uclient { };
|
||||
|
||||
ustream-ssl = callPackage ../development/libraries/ustream-ssl { ssl_implementation = openssl; };
|
||||
|
||||
ustream-ssl-wolfssl = callPackage ../development/libraries/ustream-ssl { ssl_implementation = wolfssl; };
|
||||
|
Loading…
Reference in New Issue
Block a user