zoom-us: use makeWrapper to link zoom.us.app into bin/ (#304874)

* zoom-us: use makeWrapper to link zoom.us.app into bin/

* Update pkgs/applications/networking/instant-messengers/zoom-us/default.nix

---------

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Alexis Hildebrandt 2024-04-25 22:37:11 +02:00 committed by GitHub
parent 73e7e2108a
commit 14efdd41d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -151,7 +151,9 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
postFixup = lib.optionalString stdenv.isLinux ''
postFixup = lib.optionalString stdenv.isDarwin ''
makeWrapper $out/Applications/zoom.us.app/Contents/MacOS/zoom.us $out/bin/zoom
'' + lib.optionalString stdenv.isLinux ''
# Desktop File
substituteInPlace $out/share/applications/Zoom.desktop \
--replace "Exec=/usr/bin/zoom" "Exec=$out/bin/zoom"