8 , additional_buildInputs ? [ ]
12 pname = "ustream-ssl";
13 version = "0-unstable-2024-03-26";
16 url = "https://git.openwrt.org/project/ustream-ssl.git";
17 rev = "7621339d7694abef5da5e5353ac440f2d39dcecb";
18 hash = "sha256-No0Pk8KbkT7W4Rav7W3rMKEJISbp7RRoRx7t6LPMxlk=";
23 -e "s|ubox_include_dir libubox/ustream.h|ubox_include_dir libubox/ustream.h HINTS ${libubox-nossl}/include|g" \
24 -e "s|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox-nossl}/lib|g" \
25 -e "s|^ FIND_LIBRARY\((.+)\)| FIND_LIBRARY\(\1 HINTS ${if ssl_implementation ? lib then ssl_implementation.lib else ssl_implementation.out}\)|g" \
29 cmakeFlags = [ "-D${lib.toUpper ssl_implementation.pname}=ON" ];
31 nativeBuildInputs = [ cmake pkg-config ];
32 buildInputs = [ ssl_implementation ] ++ additional_buildInputs;
35 inherit ssl_implementation;
39 description = "ustream SSL wrapper";
40 homepage = "https://git.openwrt.org/?p=project/ustream-ssl.git;a=summary";
41 license = licenses.isc;
42 maintainers = with maintainers; [ fpletz mkg20001 ];
43 platforms = platforms.all;