all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#65981: gnu: Add antimicrox
@ 2023-09-14 19:10 Luis Felipe via Bug reports for GNU Guix
  0 siblings, 0 replies; only message in thread
From: Luis Felipe via Bug reports for GNU Guix @ 2023-09-14 19:10 UTC (permalink / raw)
  To: 65981


[-- Attachment #1.1.1: Type: text/plain, Size: 818 bytes --]

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/


[-- Attachment #1.1.2: antimicrox.scm --]
[-- Type: text/x-scheme, Size: 2147 bytes --]

(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 #1.1.3: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-14 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 19:10 bug#65981: gnu: Add antimicrox Luis Felipe via Bug reports for GNU Guix

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.