| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages synergy)
|
| 23 | #:use-module (guix gexp)
|
| 24 | #:use-module (guix packages)
|
| 25 | #:use-module ((guix licenses) #:select (gpl2 expat))
|
| 26 | #:use-module (guix git-download)
|
| 27 | #:use-module (guix build-system cmake)
|
| 28 | #:use-module (guix build-system meson)
|
| 29 | #:use-module (guix build-system qt)
|
| 30 | #:use-module (gnu packages)
|
| 31 | #:use-module (gnu packages curl)
|
| 32 | #:use-module (gnu packages compression)
|
| 33 | #:use-module (gnu packages dns)
|
| 34 | #:use-module (gnu packages freedesktop)
|
| 35 | #:use-module (gnu packages linux)
|
| 36 | #:use-module (gnu packages xdisorg)
|
| 37 | #:use-module (gnu packages pkg-config)
|
| 38 | #:use-module (gnu packages python)
|
| 39 | #:use-module (gnu packages qt)
|
| 40 | #:use-module (gnu packages tls)
|
| 41 | #:use-module (gnu packages xorg)
|
| 42 | #:use-module (srfi srfi-26))
|
| 43 |
|
| 44 | (define-public synergy
|
| 45 | (package
|
| 46 | (name "synergy")
|
| 47 | (version "1.11.1")
|
| 48 | (source
|
| 49 | (origin
|
| 50 | (method git-fetch)
|
| 51 | (uri (git-reference
|
| 52 | (url "https://github.com/symless/synergy-core")
|
| 53 | (commit (string-append "v" version "-stable"))))
|
| 54 | (file-name (git-file-name name version))
|
| 55 | (sha256
|
| 56 | (base32
|
| 57 | "0dn0h3mdqy0mbg4yyhsh4rhvvsssqlknnln3naplc97my10lk2a0"))
|
| 58 | (modules '((guix build utils)))
|
| 59 | (snippet
|
| 60 | |
| 61 | '(begin
|
| 62 | (delete-file-recursively "ext/openssl")
|
| 63 | #t))))
|
| 64 | (build-system qt-build-system)
|
| 65 | (arguments
|
| 66 | `(#:tests? #f |
| 67 | #:phases
|
| 68 | (modify-phases %standard-phases
|
| 69 | (add-after 'unpack 'fix-headers
|
| 70 | (lambda* (#:key inputs #:allow-other-keys)
|
| 71 | (setenv "CPLUS_INCLUDE_PATH"
|
| 72 | (string-append (assoc-ref inputs "avahi")
|
| 73 | "/include/avahi-compat-libdns_sd:"
|
| 74 | (or (getenv "CPLUS_INCLUDE_PATH") "")))
|
| 75 | #t))
|
| 76 | (add-after 'install 'patch-desktop
|
| 77 | (lambda* (#:key outputs #:allow-other-keys)
|
| 78 | (let ((out (assoc-ref outputs "out")))
|
| 79 | (substitute* (string-append out "/share/applications/synergy.desktop")
|
| 80 | (("/usr") out))
|
| 81 | #t))))))
|
| 82 | (native-inputs
|
| 83 | (list qttools-5)) |
| 84 | (inputs
|
| 85 | `(("avahi" ,avahi)
|
| 86 | ("python" ,python-wrapper)
|
| 87 | ("openssl" ,openssl)
|
| 88 | ("curl" ,curl)
|
| 89 | ("libxi" ,libxi)
|
| 90 | ("libx11" ,libx11)
|
| 91 | ("libxtst" ,libxtst)
|
| 92 | ("qtbase" ,qtbase-5)
|
| 93 | ("qtwayland" ,qtwayland-5)))
|
| 94 | (home-page "https://symless.com/synergy")
|
| 95 | (synopsis "Mouse and keyboard sharing utility")
|
| 96 | (description
|
| 97 | "Synergy brings your computers together in one cohesive experience; it's
|
| 98 | software for sharing one mouse and keyboard between multiple computers on your
|
| 99 | desk.")
|
| 100 | (license gpl2)))
|
| 101 |
|
| 102 | (define-public waynergy
|
| 103 | (package
|
| 104 | (name "waynergy")
|
| 105 | (version "0.0.17")
|
| 106 | (source (origin
|
| 107 | (method git-fetch)
|
| 108 | (uri (git-reference
|
| 109 | (url "https://github.com/r-c-f/waynergy.git")
|
| 110 | (commit (string-append "v" version))))
|
| 111 | (file-name (git-file-name name version))
|
| 112 | (sha256
|
| 113 | (base32
|
| 114 | "130h1y68c230fj1c4srsvj8b9d4b8b6lipmi9bpx094axzl5c2kk"))))
|
| 115 | (build-system meson-build-system)
|
| 116 | (arguments
|
| 117 | (list #:phases
|
| 118 | #~(modify-phases %standard-phases
|
| 119 | (add-after 'unpack 'patch
|
| 120 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 121 | (let ((wl-clipboard (assoc-ref inputs "wl-clipboard"))
|
| 122 | (procps (assoc-ref inputs "procps"))
|
| 123 | (out (assoc-ref outputs "out")))
|
| 124 | (substitute* "waynergy.desktop"
|
| 125 | (("Exec=/usr/bin/waynergy")
|
| 126 | (string-append "Exec=" out "/bin/waynergy")))
|
| 127 | (substitute* "src/clip.c"
|
| 128 | (("\"wl-paste\"")
|
| 129 | (string-append "\"" wl-clipboard "/bin/wl-paste\""))
|
| 130 | (("\"wl-copy\"")
|
| 131 | (string-append "\"" wl-clipboard "/bin/wl-copy\""))
|
| 132 | (("\"waynergy-clip-update\"")
|
| 133 | (string-append "\"" out
|
| 134 | "/bin/waynergy-clip-update\""))
|
| 135 | (("\"pkill -f 'wlpaste")
|
| 136 | (string-append "\"" procps
|
| 137 | "/bin/pkill -f 'wl-paste")))))))))
|
| 138 | (native-inputs
|
| 139 | (list pkg-config))
|
| 140 | (inputs
|
| 141 | (list libxkbcommon libressl wl-clipboard wayland wl-clipboard procps))
|
| 142 | (synopsis "Mouse and keyboard sharing utility for Wayland")
|
| 143 | (description "Synergy brings your computers together in one cohesive experience; it's
|
| 144 | software for sharing one mouse and keyboard between multiple computers on your
|
| 145 | desk. This package is a Wayland version of Synergy, mostly for wlroots.")
|
| 146 | (home-page "https://github.com/r-c-f/waynergy")
|
| 147 | (license expat)))
|