Merge pull request #37190 from kmicklas/zoom-us-desktop-item

zoom-us: add desktop item
This commit is contained in:
John Ericson 2018-03-20 13:06:06 -04:00 committed by GitHub
commit ec8c3c82cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, system, makeWrapper, { stdenv, fetchurl, system, makeWrapper, makeDesktopItem,
alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2, alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2,
libxslt, libGLU_combined, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }: libxslt, libGLU_combined, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }:
@ -59,7 +59,7 @@ in stdenv.mkDerivation {
]; ];
installPhase = '' installPhase = ''
$preInstallHooks runHook preInstall
packagePath=$out/share/zoom-us packagePath=$out/share/zoom-us
mkdir -p $packagePath mkdir -p $packagePath
@ -88,9 +88,19 @@ in stdenv.mkDerivation {
Prefix = $packagePath Prefix = $packagePath
EOF 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 = { meta = {
homepage = https://zoom.us/; homepage = https://zoom.us/;
description = "zoom.us video conferencing application"; description = "zoom.us video conferencing application";