about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorManuel Frischknecht <manuel.frischknecht@gmail.com>2023-12-23 19:08:12 +0000
committerManuel Frischknecht <manuel.frischknecht@gmail.com>2023-12-23 19:08:19 +0000
commit982c21722a3aa69b18f01252642425caeb008777 (patch)
tree68bd972681d22c207cde870ee869835c24c984b8 /pkgs/development/libraries
parent57cea6b6fdde7258a9610dc41f229d9388b002fb (diff)
ustream-ssl-wolfssl: add missing openssl dependency
`ustream-ssl` still needs `openssl` as a build input if it is built
against `wolfssl` (see [1]). I haven't deciphered the build setup
entirely, but from the respective CMake declarations, it looks like
the library still won't be linked against `openssl` if it is built
against `wolfssl` (see the `SET(SSL_LIB ...)` declarations), so I
guess `openssl` is solely needed for some header definitions.

[1]: https://git.openwrt.org/?p=project/ustream-ssl.git;a=blob;f=CMakeLists.txt;h=2de65905a40d8893155877a2b0894bcedec56f39;hb=HEAD#l24
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/ustream-ssl/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/ustream-ssl/default.nix b/pkgs/development/libraries/ustream-ssl/default.nix
index 546e85fd96c75..6e9655efe442e 100644
--- a/pkgs/development/libraries/ustream-ssl/default.nix
+++ b/pkgs/development/libraries/ustream-ssl/default.nix
@@ -1,4 +1,12 @@
-{ stdenv, lib, fetchgit, cmake, pkg-config, libubox-nossl, ssl_implementation }:
+{ stdenv
+, lib
+, fetchgit
+, cmake
+, pkg-config
+, libubox-nossl
+, ssl_implementation
+, additional_buildInputs ? [ ]
+}:
 
 stdenv.mkDerivation {
   pname = "ustream-ssl";
@@ -21,7 +29,7 @@ stdenv.mkDerivation {
   cmakeFlags = [ "-D${lib.toUpper ssl_implementation.pname}=ON" ];
 
   nativeBuildInputs = [ cmake pkg-config ];
-  buildInputs = [ ssl_implementation ];
+  buildInputs = [ ssl_implementation ] ++ additional_buildInputs;
 
   passthru = {
     inherit ssl_implementation;