nongnu: Add slack-desktop.

* nongnu/packages/messaging.scm: Add variable slack-desktop.
This commit is contained in:
Ashish SHUKLA 2024-07-20 09:35:49 +02:00
parent cc0f27fb8d
commit f690a7754a
No known key found for this signature in database

View File

@ -20,6 +20,7 @@
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages nss) #:use-module (gnu packages nss)
#:use-module (gnu packages pulseaudio) #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages video)
#:use-module (gnu packages xdisorg) #:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
#:use-module (gnu packages xorg) #:use-module (gnu packages xorg)
@ -405,3 +406,55 @@ or iOS.")
(description "The Zoom video conferencing and messaging client. Zoom must be run via an (description "The Zoom video conferencing and messaging client. Zoom must be run via an
app launcher to use its .desktop file, or with @code{ZoomLauncher}.") app launcher to use its .desktop file, or with @code{ZoomLauncher}.")
(license (license:nonfree "https://explore.zoom.us/en/terms/")))) (license (license:nonfree "https://explore.zoom.us/en/terms/"))))
(define-public slack-desktop
(let ((binary-deps
'("ffmpeg" "dbus" ("nss" "/lib/nss") "cups" "libxcomposite" "gcc" "at-spi2-core"
"libxcb" "cairo" "nspr" "glibc" "libxfixes" "cups" "libx11" "glib"
"libxdamage" "libdrm" "libxrandr" "alsa-lib" "libxrandr" "expat" "pango"
("out" "/lib/slack") "mesa" "libxkbcommon" "gtk+" "libxext")))
(package
(name "slack-desktop")
(version "4.39.90")
(source (origin
(method url-fetch)
(uri
(string-append
"https://downloads.slack-edge.com/desktop-releases/linux/x64/"
version "/" name "-" version "-amd64.deb"))
(sha256
(base32 "00ygbka304xnh99s17hh51lxjdkv2flh6nmn143dkj7qqabgrll8"))))
(build-system chromium-binary-build-system)
(arguments
(list
#:patchelf-plan
`'(("usr/bin/slack" ,binary-deps)
("usr/lib/slack/slack" ,binary-deps)
("usr/lib/slack/libEGL.so" ("gcc"))
("usr/lib/slack/chrome_crashpad_handler" ("gcc" "glibc"))
("usr/lib/slack/libvk_swiftshader.so" ("gcc" "glibc"))
("usr/lib/slack/libvulkan.so.1" ("gcc"))
("usr/lib/slack/libffmpeg.so" ("gcc"))
("usr/lib/slack/libGLESv2.so" ("libx11" "libxext" "libxext"
"libdrm" "gcc" "libxcb" "glibc")))
#:validate-runpath? #f
#:install-plan
`'(("usr/bin/slack" "bin/")
("usr/lib/" "lib/")
("usr/share/" "share/"))))
(inputs (list ffmpeg dbus nss cups libxcomposite libx11 libxext libxrandr
libxfixes libxdamage libxcb glibc at-spi2-core cairo nspr
libxkbcommon glib mesa gtk+ (list gcc "lib") libdrm alsa-lib expat))
(synopsis "Slack communication system")
(supported-systems '("x86_64-linux"))
(description "Slack brings team communication and collaboration into one place so
you can get more work done, whether you belong to a large enterprise
or a small business. Check off your to-do list and move your projects
forward by bringing the right people, conversations, tools, and
information you need together. Slack is available on any device, so
you can find and access your team and your work, whether youre at
your desk or on the go.")
(home-page "https://slack.com/")
(license (license:nonfree "Properietary license")))))