- "/include/avahi-compat-libdns_sd"))
- ;; See https://github.com/symless/synergy-core/pull/6359/
- (substitute* "src/gui/src/ScreenSetupView.cpp"
- (("#include <QtGui>" m)
- (string-append m "\n#include <QHeaderView>")))
- (substitute* "src/gui/src/ActionDialog.cpp"
- (("#include <QtGui>" m)
- (string-append m "\n#include <QButtonGroup>")))
- #t)))))
+ "/include/avahi-compat-libdns_sd:"
+ (or (getenv "CPLUS_INCLUDE_PATH") "")))
+ #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