gnu: emacs-svg-icon: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / synergy.scm
CommitLineData
b5f4bb85 1;;; GNU Guix --- Functional package management for GNU
b410c035 2;;; Copyright © 2014, 2015, 2016, 2020 Eric Bavier <bavier@posteo.net>
cecaee42 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
c9ba67a5 4;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
843ce5b4 5;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
b5f4bb85
EB
6;;;
7;;; This file is part of GNU Guix.
8;;;
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.
13;;;
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.
18;;;
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/>.
21
22(define-module (gnu packages synergy)
23 #:use-module (guix packages)
5c852e08 24 #:use-module ((guix licenses) #:select (gpl2))
843ce5b4 25 #:use-module (guix git-download)
b5f4bb85
EB
26 #:use-module (guix build-system cmake)
27 #:use-module (gnu packages)
843ce5b4 28 #:use-module (gnu packages avahi)
b5f4bb85 29 #:use-module (gnu packages curl)
148585c2 30 #:use-module (gnu packages compression)
b5f4bb85 31 #:use-module (gnu packages python)
843ce5b4 32 #:use-module (gnu packages qt)
cc2b77df 33 #:use-module (gnu packages tls)
b5f4bb85 34 #:use-module (gnu packages xorg)
b5f4bb85
EB
35 #:use-module (srfi srfi-26))
36
37(define-public synergy
38 (package
39 (name "synergy")
2ca4ae29 40 (version "1.11.1")
b5f4bb85
EB
41 (source
42 (origin
843ce5b4
RW
43 (method git-fetch)
44 (uri (git-reference
b0e7b699 45 (url "https://github.com/symless/synergy-core")
2ca4ae29 46 (commit (string-append "v" version "-stable"))))
843ce5b4 47 (file-name (git-file-name name version))
b5f4bb85
EB
48 (sha256
49 (base32
2ca4ae29 50 "0dn0h3mdqy0mbg4yyhsh4rhvvsssqlknnln3naplc97my10lk2a0"))
5c852e08
EB
51 (modules '((guix build utils)))
52 (snippet
843ce5b4 53 ;; Remove unnecessary bundled source and binaries
ae451b9d 54 '(begin
843ce5b4 55 (delete-file-recursively "ext/openssl")
ae451b9d 56 #t))))
b5f4bb85 57 (build-system cmake-build-system)
843ce5b4
RW
58 (arguments
59 `(#:tests? #f ; there is no test target
60 #:phases
61 (modify-phases %standard-phases
62 (add-after 'unpack 'fix-headers
63 (lambda* (#:key inputs #:allow-other-keys)
64 (setenv "CPLUS_INCLUDE_PATH"
65 (string-append (assoc-ref inputs "avahi")
ba66eec7
MB
66 "/include/avahi-compat-libdns_sd:"
67 (or (getenv "CPLUS_INCLUDE_PATH") "")))
2ca4ae29
EB
68 #t))
69 (add-after 'install 'patch-desktop
70 (lambda* (#:key outputs #:allow-other-keys)
71 (let ((out (assoc-ref outputs "out")))
72 (substitute* (string-append out "/share/applications/synergy.desktop")
73 (("/usr") out))
74 #t))))))
75 (native-inputs
76 `(("qttools" ,qttools))) ; for Qt5LinguistTools
b5f4bb85 77 (inputs
843ce5b4
RW
78 `(("avahi" ,avahi)
79 ("python" ,python-wrapper)
5c852e08 80 ("openssl" ,openssl)
b5f4bb85
EB
81 ("curl" ,curl)
82 ("libxi" ,libxi)
83 ("libx11" ,libx11)
84 ("libxtst" ,libxtst)
843ce5b4 85 ("qtbase" ,qtbase)))
ae451b9d 86 (home-page "https://symless.com/synergy")
b5f4bb85
EB
87 (synopsis "Mouse and keyboard sharing utility")
88 (description
ae451b9d 89 "Synergy brings your computers together in one cohesive experience; it's
b5f4bb85
EB
90software for sharing one mouse and keyboard between multiple computers on your
91desk.")
92 (license gpl2)))