1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017 Andy Wingo <wingo@igalia.com>
3 ;;; Copyright © 2017, 2019 Arun Isaac <arunisaac@systemreboot.net>
4 ;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages gobby)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix utils)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix build-system gnu)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages glib)
30 #:use-module (gnu packages gnome)
31 #:use-module (gnu packages gsasl)
32 #:use-module (gnu packages gtk)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages tls)
35 #:use-module (gnu packages xml))
37 (define-public libnet6
43 (uri (string-append "http://releases.0x539.de/net6/net6-"
47 "088yqq60wjx3jqjlhl12893p15gl9asjpavrbhh590qzpqndhp8m"))))
48 (build-system gnu-build-system)
50 `(("pkg-config" ,pkg-config)))
53 (list "--disable-static")
55 (modify-phases %standard-phases
56 (add-before 'configure 'update-gnutls-api
58 (substitute* "src/encrypt.cpp"
59 ;; The GnuTLS API to set authentication and other parameters
60 ;; and priorities changed in 3.4; update to allow ANON_DH via
62 (("gnutls_kx_set_priority\\(session, kx_prio\\)")
63 (string-append "gnutls_priority_set_direct"
64 "(session, \"NORMAL:+ANON-DH\", NULL)"))))))))
66 `(("libsigc++" ,libsigc++)
68 (home-page "https://gobby.github.io/")
69 (synopsis "Network access framework for IPv4/IPv6")
71 "Library which that provides a TCP protocol abstraction for C++.")
72 (license license:lgpl2.1)))
80 (uri (string-append "http://releases.0x539.de/obby/obby-"
82 (file-name (string-append name "-" version ".tar.gz"))
85 "0rwvp0kzsb8y6mq73rzb8yk4kvsrz64i2zf4lfqs3kh0x2k7n7bx"))))
86 (build-system gnu-build-system)
89 (list "--disable-static")))
91 `(("pkg-config" ,pkg-config)))
93 `(("libsigc++" ,libsigc++)
95 ("libnet6" ,libnet6)))
96 (home-page "https://gobby.github.io/")
97 (synopsis "Library for building collaborative editors")
99 "Library that provides synced document buffers. It supports multiple
100 documents in one session. Obby is used by the Gobby collaborative editor.")
101 (license license:gpl2+)))
103 ;; Although there is a newer version of Gobby defined below, the protocols are
104 ;; incompatible; you need Gobby 0.4 if you want to connect to servers running
106 (define-public gobby-0.4
112 (uri (string-append "http://releases.0x539.de/gobby/gobby-"
114 (file-name (string-append name "-" version ".tar.gz"))
117 "0w8q01lf6bcdz537b29m7rwlbc7k87b12vnpm1h6219ypvzqkgcc"))))
118 (build-system gnu-build-system)
120 `(("pkg-config" ,pkg-config)
121 ("intltool" ,intltool)))
123 `(("libxml++-2" ,libxml++-2)
126 ("gtksourceview-2" ,gtksourceview-2)
130 ;; Required by libsigc++.
131 `(#:configure-flags '("CXXFLAGS=-std=c++11")))
132 (home-page "https://gobby.github.io/")
133 (synopsis "Collaborative editor")
135 "Collaborative editor that supports multiple documents in one session and
136 a multi-user chat. Gobby allows multiple users to edit the same document
137 together over the internet in real-time.
139 This is the older 0.4 version of Gobby. Use this version only if you need to
140 connect to a server running the old 0.4 protocol.")
141 (license license:gpl2+)))
149 (uri (string-append "http://releases.0x539.de/gobby/gobby-"
151 (file-name (string-append name "-" version ".tar.gz"))
154 "165x0r668ma5blziisvbr8qig3jw9hf7i6w8r7wwvz3wsac3bswc"))))
155 (build-system gnu-build-system)
157 `(("pkg-config" ,pkg-config)
158 ("intltool" ,intltool)))
163 ("gtksourceview-2" ,gtksourceview-2)
164 ("libinfinity" ,libinfinity)
165 ("libxml++-2" ,libxml++-2)))
167 ;; Required by libsigc++.
168 `(#:configure-flags '("CXXFLAGS=-std=c++11")
170 (modify-phases %standard-phases
171 (add-after 'install 'move-executable
172 (lambda* (#:key outputs #:allow-other-keys)
173 (with-directory-excursion (assoc-ref outputs "out")
174 (rename-file "bin/gobby-0.5" "bin/gobby"))
176 (home-page "https://gobby.github.io/")
177 (synopsis "Collaborative editor")
179 "Collaborative editor that supports multiple documents in one session and
180 a multi-user chat. Gobby allows multiple users to edit the same document
181 together over the internet in real-time.")
182 (license license:gpl2+)))
184 (define-public libinfinity
191 (uri (string-append "http://releases.0x539.de/libinfinity/libinfinity-"
195 "17i3g61hxz9pzl3ryd1yr15142r25m06jfzjrpdy7ic1b8vjjw3f"))))
196 (build-system gnu-build-system)
201 ("libxml2" ,libxml2)))
203 `(("pkg-config" ,pkg-config)))
205 `(#:configure-flags (list "--disable-static"
208 (home-page "https://gobby.github.io/")
209 (synopsis "Infininote protocol implementation")
210 (description "libinfinity is a library to build collaborative text
211 editors. Changes to the text buffers are synced to all other clients over a
212 central server. Even though a central server is involved, the local user sees
213 his changes applied instantly and the merging is done on the individual
215 (license license:lgpl2.1+)))