From e6bc7732427e8b071bff4a5895d9514bb773b7dd Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Thu, 17 Apr 2025 19:47:50 -0500 Subject: [PATCH] remove synergy for now lol --- .../packages/{synergy.scm => synergy._scm} | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) rename gchannel/packages/{synergy.scm => synergy._scm} (69%) diff --git a/gchannel/packages/synergy.scm b/gchannel/packages/synergy._scm similarity index 69% rename from gchannel/packages/synergy.scm rename to gchannel/packages/synergy._scm index e87dc39..f30a6eb 100644 --- a/gchannel/packages/synergy.scm +++ b/gchannel/packages/synergy._scm @@ -8,10 +8,11 @@ #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages avahi) + #:use-module (gchannel packages libportal) #:use-module (gnu packages curl) #:use-module (gnu packages cpp) #:use-module (gnu packages compression) - #:use-module (gnu packages freedesktop) + #:use-module ((gnu packages freedesktop) #:select (libei)) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages linux) @@ -55,12 +56,34 @@ (lambda* (#:key #:allow-other-keys) (system* "sed" "-i" "s|set(CMAKE_INSTALL_PREFIX /usr)| |g" "cmake/Packaging.cmake") #t)) ; - (add-after 'install 'patch-desktop + (add-after 'install 'wrap-synergy-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (openssl (assoc-ref inputs "openssl")) + (xkeyboard-config (assoc-ref inputs "xkeyboard-config"))) + (wrap-program (string-append out "/bin/deskflow") + `("PATH" ":" prefix (,(string-append openssl "/bin")))) + (wrap-program (string-append out "/bin/deskflow-client") + `("PATH" ":" prefix (,(string-append openssl "/bin")))) + (wrap-program (string-append out "/bin/deskflow-server") + `("PATH" ":" prefix (,(string-append openssl "/bin")))) + (wrap-program (string-append out "/bin/deskflow-legacy") + `("PATH" ":" prefix (,(string-append openssl "/bin"))) + ) + + + + + ) + #t)) + (add-after 'wrap-synergy-executable '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))) + (substitute* (string-append out "/share/applications/deskflow.desktop") + (("/usr") out)) + (system* "mv" (string-append out "/share/applications/deskflow.desktop") (string-append out "/share/applications/synergy.desktop")) + #t))) + ))) (native-inputs (list qttools pkg-config)) ; for Qt5LinguistTools @@ -83,6 +106,7 @@ ("pugixml" ,pugixml) ("tomlplusplus" ,tomlplusplus) ("qtbase" ,qtbase) + ("xkeyboard-config" ,xkeyboard-config) )) (home-page "https://symless.com/synergy") (synopsis "Mouse and keyboard sharing utility")