ustream-ssl*: init at unstable-2022-12-08

This commit is contained in:
Maciej Krüger 2023-02-08 20:53:28 +01:00
parent 857052b13a
commit 43ce59c656
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ stdenv, lib, fetchgit, cmake, pkg-config, libubox, ssl_implementation }:
stdenv.mkDerivation {
pname = "ustream-ssl";
version = "unstable-2022-12-08";
src = fetchgit {
url = "https://git.openwrt.org/project/ustream-ssl.git";
rev = "9217ab46536353c7c792951b57163063f5ec7a3b";
sha256 = "1ldyyb3is213iljyccx98f56rb69rfpgdcb1kjxw9a176hvpipdd";
};
preConfigure = ''
sed -r \
-e "s|ubox_include_dir libubox/ustream.h|ubox_include_dir libubox/ustream.h HINTS ${libubox}/include|g" \
-e "s|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox}/lib|g" \
-e "s|^ FIND_LIBRARY\((.+)\)| FIND_LIBRARY\(\1 HINTS ${if ssl_implementation ? lib then ssl_implementation.lib else ssl_implementation.out}\)|g" \
-i CMakeLists.txt
'';
cmakeFlags = [ "-D${lib.toUpper ssl_implementation.pname}=ON" ];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ ssl_implementation ];
meta = with lib; {
description = "ustream SSL wrapper";
homepage = "https://git.openwrt.org/?p=project/ustream-ssl.git;a=summary";
license = licenses.isc;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.all;
};
}

View file

@ -19299,6 +19299,12 @@ with pkgs;
uci = callPackage ../development/libraries/uci { };
ustream-ssl = callPackage ../development/libraries/ustream-ssl { ssl_implementation = openssl; };
ustream-ssl-wolfssl = callPackage ../development/libraries/ustream-ssl { ssl_implementation = wolfssl; };
ustream-ssl-mbedtls = callPackage ../development/libraries/ustream-ssl { ssl_implementation = mbedtls_2; };
uri = callPackage ../development/libraries/uri { stdenv = gcc10StdenvCompat; };
cppcms = callPackage ../development/libraries/cppcms { };