gnu: Update synergy to 1.11.1.

* gnu/packages/synergy.scm (synergy): Update to 1.11.1.
[arguments]: Add "patch-desktop" phase.
[native-inputs]: New field.
[inputs]: Remove unused "xinput" input.
This commit is contained in:
Eric Bavier 2020-07-03 14:05:18 -05:00
parent ec70df7243
commit 2ca4ae2993
No known key found for this signature in database
GPG key ID: FD73CAC719D32566

View file

@ -37,17 +37,17 @@ (define-module (gnu packages synergy)
(define-public synergy (define-public synergy
(package (package
(name "synergy") (name "synergy")
(version "1.11.0") (version "1.11.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/symless/synergy-core.git") (url "https://github.com/symless/synergy-core.git")
(commit (string-append version "-stable")))) (commit (string-append "v" version "-stable"))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1jk60xw4h6s5crha89wk4y8rrf1f3bixgh5mzh3cq3xyrkba41gh")) "0dn0h3mdqy0mbg4yyhsh4rhvvsssqlknnln3naplc97my10lk2a0"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
;; Remove unnecessary bundled source and binaries ;; Remove unnecessary bundled source and binaries
@ -65,7 +65,15 @@ (define-public synergy
(string-append (assoc-ref inputs "avahi") (string-append (assoc-ref inputs "avahi")
"/include/avahi-compat-libdns_sd:" "/include/avahi-compat-libdns_sd:"
(or (getenv "CPLUS_INCLUDE_PATH") ""))) (or (getenv "CPLUS_INCLUDE_PATH") "")))
#t))))) #t))
(add-after 'install 'patch-desktop
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* (string-append out "/share/applications/synergy.desktop")
(("/usr") out))
#t))))))
(native-inputs
`(("qttools" ,qttools))) ; for Qt5LinguistTools
(inputs (inputs
`(("avahi" ,avahi) `(("avahi" ,avahi)
("python" ,python-wrapper) ("python" ,python-wrapper)
@ -74,7 +82,6 @@ (define-public synergy
("libxi" ,libxi) ("libxi" ,libxi)
("libx11" ,libx11) ("libx11" ,libx11)
("libxtst" ,libxtst) ("libxtst" ,libxtst)
("xinput" ,xinput)
("qtbase" ,qtbase))) ("qtbase" ,qtbase)))
(home-page "https://symless.com/synergy") (home-page "https://symless.com/synergy")
(synopsis "Mouse and keyboard sharing utility") (synopsis "Mouse and keyboard sharing utility")