From cb02272b9759426427ba1accc60915b455dfb357 Mon Sep 17 00:00:00 2001 From: Tim Gesthuizen Date: Sat, 5 Jan 2019 20:55:14 +0100 Subject: [PATCH 5/7] gnu: Add inputattach * gnu/packages/firmware.scm (inputattach): New variable --- gnu/packages/firmware.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index be2fc4de4..cc2022a90 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -628,3 +628,31 @@ switching support).\n") touchscreens. In combination with xf86-input-wacom and libwacom it forms a set of modules to support wacom touchscreens with the X server.") (license license:gpl2))) + +(define-public inputattach + (package + (inherit input-wacom) + (name "inputattach") + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "inputattach" + (invoke (string-append (assoc-ref inputs "gcc") + "/bin/gcc") + "-o" "inputattach" "inputattach.c")) + #t)) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((target-dir (string-append + (assoc-ref outputs "out") + "/bin/"))) + (mkdir-p target-dir) + (copy-file "inputattach/inputattach" + (string-append target-dir + "inputattach")))))))) + (synopsis "Dispatch input peripherals events to a device file"))) -- 2.20.1