From f690a7754aef2b782624023e565dacdaaaaad9c5 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sat, 20 Jul 2024 09:35:49 +0200 Subject: [PATCH] nongnu: Add slack-desktop. * nongnu/packages/messaging.scm: Add variable slack-desktop. --- nongnu/packages/messaging.scm | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/nongnu/packages/messaging.scm b/nongnu/packages/messaging.scm index ae2e0ce..c19b926 100644 --- a/nongnu/packages/messaging.scm +++ b/nongnu/packages/messaging.scm @@ -20,6 +20,7 @@ #:use-module (gnu packages linux) #:use-module (gnu packages nss) #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages video) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #: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 app launcher to use its .desktop file, or with @code{ZoomLauncher}.") (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 you’re at + your desk or on the go.") + (home-page "https://slack.com/") + (license (license:nonfree "Properietary license")))))