jicofo: run hooks in installPhase
This commit is contained in:
parent
8daaa9faf1
commit
1684fb7995
@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
|
||||
{ lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
|
||||
|
||||
let
|
||||
pname = "jicofo";
|
||||
@ -16,6 +16,7 @@ stdenv.mkDerivation {
|
||||
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
substituteInPlace usr/share/jicofo/jicofo.sh \
|
||||
--replace "exec java" "exec ${jre_headless}/bin/java"
|
||||
|
||||
@ -24,6 +25,7 @@ stdenv.mkDerivation {
|
||||
mv etc $out/
|
||||
cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
|
||||
ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
|
Loading…
Reference in New Issue
Block a user