Hi,

I'm attaching a package definition for AntiMicroX 3.3.4 (https://github.com/AntiMicroX/antimicrox/) from my personal Guix channel. I've been using the software for several months now and it works, but I don't have the time at the moment to send a proper patch to Guix. I'm attaching this just in case someone else is interested (no need to credit me).

The software just works on X, but it fails on Wayland like so

|❯ antimicrox Selecting uinput as a default event generator.Could not find a valid uinput device file. Please check that you have the uinput module loaded. lsmod | grep uinputFailed to open event generator. Exiting.|

Possibly related to https://github.com/AntiMicroX/antimicrox/pull/781 (?)

Cheers,

--
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

(define-module (luflac-x packages antimicrox)
  #:use-module (guix build-system cmake)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages kde-frameworks)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages sdl)
  #:use-module (gnu packages xorg)
  #:use-module (ice-9 match))


(define-public antimicrox
  (package
   (name "antimicrox")
   (version "3.3.4")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
           (url "https://github.com/AntiMicroX/antimicrox/";)
           (commit version)))
     (file-name (git-file-name name version))
     (sha256
      (base32
       "1ih1bclynbjmsygiqz7ww032j435z3c1b9w9cwlwcrci09wlljsq"))))
   (build-system cmake-build-system)
   (arguments
    `(#:tests? #f  ; FIXME: Run tests.
      #:configure-flags '("-DAPPDATA=OFF")  ; FIXME: Install appdata.
      #:phases
      (modify-phases %standard-phases
        (add-after 'unpack 'patch-CMakeLists.txt
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (substitute* "CMakeLists.txt"
                (("/usr/lib/udev/rules.d/")
                 (string-append out "/usr/lib/udev/rules.d/")))
              (substitute* "src/eventhandlers/uinputeventhandler.cpp"
                (("/dev/uinput")
                 (string-append out "/dev/uinput")))))))))
   (native-inputs (list pkg-config))
   (inputs
    (list extra-cmake-modules
          itstool
          libx11
          libxi
          libxtst
          qtbase-5
          qttools-5
          sdl2))
   (synopsis "Control your system with a gamepad")
   (description
    "Graphical program used to map keyboard buttons, mouse controls and
other devices to a gamepad.  Useful for controlling your desktop with a
gamepad or playing games that don't support gamepads natively.")
   (home-page "https://github.com/AntiMicroX/antimicrox";)
   (license license:gpl3+)))

Attachment: OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to