Don't duplicate installPhase
on both Darwin platforms.
This commit is contained in:
parent
5b44ce3367
commit
aef5702d2b
1 changed files with 2 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue