From 5d6f159ee6027c658d136f89b52cd4700d75dd8a Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 5 Mar 2021 18:07:53 +0100 Subject: [PATCH] wire-desktop: Add missing phase hooks --- .../wire-desktop/default.nix | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix b/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix index 0cfd4ab61b9..09a5d781c44 100644 --- a/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix @@ -95,9 +95,17 @@ let buildInputs = atomEnv.packages; - unpackPhase = "dpkg-deb -x $src ."; + unpackPhase = '' + runHook preUnpack + + dpkg-deb -x $src . + + runHook postUnpack + ''; installPhase = '' + runHook preInstall + mkdir -p "$out/bin" cp -R "opt" "$out" cp -R "usr/share" "$out/share" @@ -106,6 +114,8 @@ let # Desktop file mkdir -p "$out/share/applications" cp "${desktopItem}/share/applications/"* "$out/share/applications" + + runHook postInstall ''; runtimeDependencies = [ @@ -134,17 +144,29 @@ let ]; unpackPhase = '' + runHook preUnpack + xar -xf $src cd com.wearezeta.zclient.mac.pkg + + runHook postUnpack ''; buildPhase = '' + runHook preBuild + cat Payload | gunzip -dc | cpio -i + + runHook postBuild ''; installPhase = '' + runHook preInstall + mkdir -p $out/Applications cp -r Wire.app $out/Applications + + runHook postInstall ''; };