diff options
author | toonn <toonn@toonn.io> | 2021-03-05 18:07:53 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-03-05 18:07:53 +0100 |
commit | 5d6f159ee6027c658d136f89b52cd4700d75dd8a (patch) | |
tree | 0f4a35fa896c2187905ea9041d99b2e68038c67b /pkgs/applications/networking/instant-messengers/wire-desktop | |
parent | dd4b13bcf3ce503930c1124a8b8295830171ca56 (diff) |
wire-desktop: Add missing phase hooks
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/wire-desktop')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/wire-desktop/default.nix | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix b/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix index 0cfd4ab61b93e..09a5d781c447c 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 ''; }; |