@@ -1,4 +1,4 @@
1−{ pkgs, lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
1+{ lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
22
33let
44 pname = "jicofo";
@@ -16,6 +16,7 @@ stdenv.mkDerivation {
1616 unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
1717
1818 installPhase = ''
19+ runHook preInstall
1920 substituteInPlace usr/share/jicofo/jicofo.sh \
2021 --replace "exec java" "exec ${jre_headless}/bin/java"
2122
@@ -24,6 +25,7 @@ stdenv.mkDerivation {
2425 mv etc $out/
2526 cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
2627 ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
28+ runHook postInstall
2729 '';
2830
2931 passthru.tests = {