diff options
author | Milan Pässler <milan@petabyte.dev> | 2021-02-13 02:53:17 +0100 |
---|---|---|
committer | Milan <milan@petabyte.dev> | 2021-02-13 17:34:54 +0100 |
commit | 1684fb79957233670159c44f3812556c6b6d7279 (patch) | |
tree | 8023f5101bb637e22af7749f1efda8bdad0bcd2f /pkgs/servers/jicofo | |
parent | 8daaa9faf1c5f3309c377c58093d660c3e996776 (diff) |
jicofo: run hooks in installPhase
Diffstat (limited to 'pkgs/servers/jicofo')
-rw-r--r-- | pkgs/servers/jicofo/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/servers/jicofo/default.nix b/pkgs/servers/jicofo/default.nix index f706438d6c146..520ee4f772130 100644 --- a/pkgs/servers/jicofo/default.nix +++ b/pkgs/servers/jicofo/default.nix @@ -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 = { |