summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nongnu/packages/messaging.scm122
1 files changed, 122 insertions, 0 deletions
diff --git a/nongnu/packages/messaging.scm b/nongnu/packages/messaging.scm
new file mode 100644
index 0000000..a78ca57
--- /dev/null
+++ b/nongnu/packages/messaging.scm
@@ -0,0 +1,122 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
3;;;
4;;; This file is not part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (nongnu packages messaging)
20 #:use-module (guix download)
21 #:use-module (guix packages)
22 #:use-module (nonguix build-system binary)
23 #:use-module ((nonguix licenses) :prefix license:)
24 #:use-module (gnu packages cpio)
25 #:use-module (gnu packages cups)
26 #:use-module (gnu packages gcc)
27 #:use-module (gnu packages glib)
28 #:use-module (gnu packages package-management)
29 #:use-module (gnu packages linux)
30 #:use-module (gnu packages nss)
31 #:use-module (gnu packages xml)
32 #:use-module (gnu packages xorg)
33 #:use-module (gnu packages gtk))
34
35(define-public skype
36 (package
37 (name "skype")
38 (version "8.66.0.74-1")
39 (source
40 (origin
41 (method url-fetch)
42 (uri (string-append "https://repo.skype.com/rpm/stable/skypeforlinux_"
43 version ".x86_64.rpm"))
44 (sha256
45 (base32 "1cv42d5pv2d7ydr2wqicp2kdbn9wi0mrsinziwdm5jx6nvr8ij6k"))))
46 (build-system binary-build-system)
47 (arguments
48 `(#:validate-runpath? #f ;fails on shipped .so files
49 #:patchelf-plan
50 `(("share/skypeforlinux/skypeforlinux"
51 ("alsa-lib" "atk" "at-spi2-atk" "at-spi2-core" "cairo" "cups" "dbus"
52 "expat" "gcc:lib" "gdk-pixbuf" "glib" "gtk+" "libx11" "libxcb"
53 "libxcomposite" "libxcursor" "libxdamage" "libxext" "libxfixes"
54 "libxi" "libxrandr" "libxrender" "libxscrnsaver" "libxtst"
55 "nspr" "nss" "out" "pango"))
56 ("share/skypeforlinux/libGLESv2.so"
57 ("libx11" "libxcb" "gcc:lib"))
58 ("share/skypeforlinux/libffmpeg.so"
59 ("gcc:lib"))
60 ("share/skypeforlinux/swiftshader/libGLESv2.so"
61 ("gcc:lib"))
62 ("share/skypeforlinux/swiftshader/libEGL.so"
63 ("gcc:lib"))
64 ("share/skypeforlinux/libEGL.so"
65 ("gcc:lib"))
66 ("share/skypeforlinux/libvk_swiftshader.so"
67 ("gcc:lib")))
68 #:install-plan
69 `(("share/" "share")
70 ("bin/" "bin")
71 ("share/skypeforlinux/swiftshader/libEGL.so" "lib/swiftshader/")
72 ("share/skypeforlinux/swiftshader/libGLESv2.so" "lib/swiftshader/")
73 ("share/skypeforlinux/libffmpeg.so" "lib/")
74 ("share/skypeforlinux/libGLESv2.so" "lib/")
75 ("share/skypeforlinux/libvk_swiftshader.so" "lib/")
76 ("share/skypeforlinux/libEGL.so" "lib/"))
77 #:phases
78 (modify-phases %standard-phases
79 (replace 'unpack
80 (lambda* (#:key inputs #:allow-other-keys)
81 (let ((source (assoc-ref inputs "source")))
82 (system (format #f "rpm2cpio ~a | cpio -idmv"
83 source))
84 (chdir "usr")
85 (mkdir-p "lib/swiftshader/")
86 #t))))))
87 (native-inputs
88 `(("cpio" ,cpio)
89 ("rpm" ,rpm)))
90 (inputs
91 `(("alsa-lib" ,alsa-lib)
92 ("atk" ,atk)
93 ("at-spi2-atk" ,at-spi2-atk)
94 ("at-spi2-core" ,at-spi2-core)
95 ("cairo" ,cairo)
96 ("cups" ,cups)
97 ("dbus" ,dbus)
98 ("expat" ,expat)
99 ("gcc:lib" ,gcc "lib")
100 ("gdk-pixbuf" ,gdk-pixbuf)
101 ("glib" ,glib)
102 ("gtk+" ,gtk+)
103 ("libx11" ,libx11)
104 ("libxcb" ,libxcb)
105 ("libxcomposite" ,libxcomposite)
106 ("libxcursor" ,libxcursor)
107 ("libxdamage" ,libxdamage)
108 ("libxext" ,libxext)
109 ("libxfixes" ,libxfixes)
110 ("libxi" ,libxi)
111 ("libxrandr" ,libxrandr)
112 ("libxrender" ,libxrender)
113 ("libxscrnsaver" ,libxscrnsaver)
114 ("libxtst" ,libxtst)
115 ("nspr" ,nspr)
116 ("nss" ,nss)
117 ("pango" ,pango)))
118 (home-page "https://www.skype.com")
119 (synopsis "Video chat")
120 (description "Skype is a video chat tool from Microsoft")
121 (supported-systems '("x86_64-linux"))
122 (license #f)))