ustream-ssl*: init at unstable-2022-12-08
This commit is contained in:
parent
857052b13a
commit
43ce59c656
33
pkgs/development/libraries/ustream-ssl/default.nix
Normal file
33
pkgs/development/libraries/ustream-ssl/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue