diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index e13f0001f02..03b4b980929 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, system, makeWrapper, +{ stdenv, fetchurl, system, makeWrapper, makeDesktopItem, alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2, libxslt, libGLU_combined, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }: @@ -59,7 +59,7 @@ in stdenv.mkDerivation { ]; installPhase = '' - $preInstallHooks + runHook preInstall packagePath=$out/share/zoom-us mkdir -p $packagePath @@ -88,9 +88,19 @@ in stdenv.mkDerivation { Prefix = $packagePath EOF - $postInstallHooks + runHook postInstall ''; + postInstall = (makeDesktopItem { + name = "zoom-us"; + exec = "$out/bin/zoom-us %U"; + icon = "$out/share/zoom-us/application-x-zoom.png"; + desktopName = "Zoom"; + genericName = "Video Conference"; + categories = "Network;Application;"; + mimeType = "x-scheme-handler/zoommtg;"; + }).buildCommand; + meta = { homepage = https://zoom.us/; description = "zoom.us video conferencing application";