From aef5702d2bf2b4ed8e56cc42260e586fd5f82285 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 5 Apr 2022 11:09:39 -0700 Subject: [PATCH] Don't duplicate `installPhase` on both Darwin platforms. --- .../instant-messengers/zoom-us/default.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index b98cbe37f628..02a8dc17f3f3 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -103,27 +103,18 @@ stdenv.mkDerivation rec { cpio ]; - installPhase = { - aarch64-darwin = '' + installPhase = if stdenv.isDarwin then '' runHook preInstall mkdir -p $out/Applications/zoom.us.app cp -R . $out/Applications/zoom.us.app runHook postInstall - ''; - x86_64-darwin = '' - runHook preInstall - mkdir -p $out/Applications/zoom.us.app - cp -R . $out/Applications/zoom.us.app - runHook postInstall - ''; - x86_64-linux = '' + '' else '' runHook preInstall mkdir $out tar -C $out -xf $src mv $out/usr/* $out/ runHook postInstall ''; - }.${stdenv.hostPlatform.system}; postFixup = lib.optionalString stdenv.isLinux '' # Desktop File