jitsi-videobridge: run hooks in installPhase

This commit is contained in:
Milan Pässler 2021-02-13 02:53:31 +01:00 committed by Milan
parent 1684fb7995
commit 5a3e315c29
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation {
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
runHook preInstall
substituteInPlace usr/share/jitsi-videobridge/jvb.sh \ substituteInPlace usr/share/jitsi-videobridge/jvb.sh \
--replace "exec java" "exec ${jre_headless}/bin/java" --replace "exec java" "exec ${jre_headless}/bin/java"
@ -30,6 +31,7 @@ stdenv.mkDerivation {
# work around https://github.com/jitsi/jitsi-videobridge/issues/1547 # work around https://github.com/jitsi/jitsi-videobridge/issues/1547
wrapProgram $out/bin/jitsi-videobridge \ wrapProgram $out/bin/jitsi-videobridge \
--set VIDEOBRIDGE_GC_TYPE G1GC --set VIDEOBRIDGE_GC_TYPE G1GC
runHook postInstall
''; '';
passthru.tests = { passthru.tests = {