jitsi-videobridge: add openssl to LD_LIBRARY_PATH

Jitsi Videobridge loads libcrypto.so at runtime to use hardware AES.
This commit is contained in:
Andrey Golovizin 2022-09-29 22:01:56 +02:00
parent ac1390c204
commit 6877efb135

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, makeWrapper, dpkg, jre_headless, nixosTests }:
{ lib, stdenv, fetchurl, makeWrapper, dpkg, jre_headless, openssl, nixosTests }:
let
pname = "jitsi-videobridge2";
@ -28,9 +28,11 @@ stdenv.mkDerivation {
mv usr/share/jitsi-videobridge/* $out/share/jitsi-videobridge/
ln -s $out/share/jitsi-videobridge/jvb.sh $out/bin/jitsi-videobridge
# work around https://github.com/jitsi/jitsi-videobridge/issues/1547
# - work around https://github.com/jitsi/jitsi-videobridge/issues/1547
# - make libcrypto.so available at runtime for hardware AES
wrapProgram $out/bin/jitsi-videobridge \
--set VIDEOBRIDGE_GC_TYPE G1GC
--set VIDEOBRIDGE_GC_TYPE G1GC \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ openssl ]}
runHook postInstall
'';