zoom-us: add desktop item

This commit is contained in:
Ken Micklas 2018-03-16 15:03:15 -04:00 committed by Ken Micklas
parent e8e7e78d9f
commit c234c01de0

View File

@ -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 }:
@ -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";