Don't duplicate installPhase on both Darwin platforms.

This commit is contained in:
Matt Whiteley 2022-04-05 11:09:39 -07:00
parent 5b44ce3367
commit aef5702d2b

View file

@ -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