mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #37190 from kmicklas/zoom-us-desktop-item
zoom-us: add desktop item
This commit is contained in:
commit
ec8c3c82cc
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user