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
|
let
|
||||||
pname = "jicofo";
|
pname = "jicofo";
|
||||||
@ -16,6 +16,7 @@ stdenv.mkDerivation {
|
|||||||
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
substituteInPlace usr/share/jicofo/jicofo.sh \
|
substituteInPlace usr/share/jicofo/jicofo.sh \
|
||||||
--replace "exec java" "exec ${jre_headless}/bin/java"
|
--replace "exec java" "exec ${jre_headless}/bin/java"
|
||||||
|
|
||||||
@ -24,6 +25,7 @@ stdenv.mkDerivation {
|
|||||||
mv etc $out/
|
mv etc $out/
|
||||||
cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
|
cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
|
||||||
ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
|
ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user