git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #37190 from kmicklas/zoom-us-desktop-item

zoom-us: add desktop item

commitec8c3c82cccbe3c761602a51a8fb4e598be01842 authorJohn Ericson <Ericson2314@yahoo.com> dateTue 20 Mar 2018, 13:06 (9 years ago) parent326c9f50e9d1fa
1 file changed+13−3
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+13−3
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+13−3
@@ -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
@@ -59,7 +59,7 @@ in stdenv.mkDerivation {
5959 ];
6060
6161 installPhase = ''
62− $preInstallHooks
62+ runHook preInstall
6363
6464 packagePath=$out/share/zoom-us
6565 mkdir -p $packagePath
@@ -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";