git.iko.soy/typeable/nixpkgs
on master help sign in
zoom-us: add desktop item
commitc234c01de04ca3e2cff5b126a536f42ab9e0ba95 authorKen Micklas <kmicklas@gmail.com> dateFri 16 Mar 2018, 15:03 (9 years ago) parente8e7e78
1 file changed+12−2
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+12−2
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+12−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, system, makeWrapper,
1+{ stdenv, fetchurl, system, makeWrapper, makeDesktopItem,
22 alsaLib, dbus, glib, gstreamer, fontconfig, freetype, libpulseaudio, libxml2,
33 libxslt, libGLU_combined, nspr, nss, sqlite, utillinux, zlib, xorg, udev, expat, libv4l }:
44
@@ -88,9 +88,19 @@ in stdenv.mkDerivation {
8888 Prefix = $packagePath
8989 EOF
9090
91− $postInstallHooks
91+ runHook postInstall
9292 '';
9393
94+ postInstall = (makeDesktopItem {
95+ name = "zoom-us";
96+ exec = "$out/bin/zoom-us %U";
97+ icon = "$out/share/zoom-us/application-x-zoom.png";
98+ desktopName = "Zoom";
99+ genericName = "Video Conference";
100+ categories = "Network;Application;";
101+ mimeType = "x-scheme-handler/zoommtg;";
102+ }).buildCommand;
103+
94104 meta = {
95105 homepage = https://zoom.us/;
96106 description = "zoom.us video conferencing application";