unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50157] [PATCH] gnu: Add xpadneo.
@ 2021-08-21 22:00 Leo Prikler
  2021-08-22  9:58 ` Maxime Devos
  2021-08-26 11:10 ` [bug#50157] [PATCH v2 1/2] build-system: linux-module: Support source-directory Leo Prikler
  0 siblings, 2 replies; 8+ messages in thread
From: Leo Prikler @ 2021-08-21 22:00 UTC (permalink / raw)
  To: 50157

* gnu/packages/linux.scm (xpadneo): New variable.
---
 gnu/packages/linux.scm | 52 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 7b92be4b9c..385cdd558b 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1505,6 +1505,58 @@ allows some more serious things like adding streaming capabilities to an
 application by hooking GStreamer into the loopback device.")
     (license license:gpl2+)))
 
+(define-public xpadneo
+  (package
+    (name "xpadneo")
+    (version "0.9.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/atar-axis/xpadneo")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0xr0zx134s56h4ij6c3fh8ki0h58h61minbfxcl3sgpgxkh14ism"))))
+    (build-system linux-module-build-system)
+    (arguments
+     `(#:tests? #f ; no `check' target
+       #:modules (((guix build copy-build-system) #:prefix copy:)
+                  (guix build linux-module-build-system)
+                  (guix build utils))
+       #:imported-modules
+       ((guix build copy-build-system)
+        ,@%linux-module-build-system-modules)
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda args
+             (with-directory-excursion "hid-xpadneo/src"
+               (apply (assoc-ref %standard-phases 'configure) args))))
+         (replace 'build
+           (lambda args
+             (with-directory-excursion "hid-xpadneo/src"
+               (apply (assoc-ref %standard-phases 'build) args))))
+         (replace 'install
+           (lambda args
+             (with-directory-excursion "hid-xpadneo/src"
+               (apply (assoc-ref %standard-phases 'install) args))))
+         (add-after 'install 'post-install
+           (lambda* (#:key outputs #:allow-other-keys #:rest args)
+             (apply (assoc-ref copy:%standard-phases 'install)
+                    #:install-plan
+                    '(("hid-xpadneo/etc-modprobe.d" "etc/modprobe.d")
+                      ("hid-xpadneo/etc-udev-rules.d" "etc/udev/rules.d"))
+                    args))))))
+    (home-page "https://atar-axis.github.io/xpadneo/")
+    (synopsis "Xbox One Wireless Controller driver")
+    (description
+     "This package provides a driver for the XBox One S Wireless controller
+and some newer models when connected via bluetooth.  In addition to the kernel
+module provided itself, it also contains a modprobe configuration and udev
+rules, which need to be installed separately.")
+    (license license:gpl3+)))
+
 \f
 ;;;
 ;;; Pluggable authentication modules (PAM).
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-14 22:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 22:00 [bug#50157] [PATCH] gnu: Add xpadneo Leo Prikler
2021-08-22  9:58 ` Maxime Devos
2021-08-22 10:08   ` Leo Prikler
2021-08-22 11:32     ` Efraim Flashner
2021-08-22 12:03       ` Leo Prikler
2021-08-26 11:10 ` [bug#50157] [PATCH v2 1/2] build-system: linux-module: Support source-directory Leo Prikler
2021-08-26 11:10   ` [bug#50157] [PATCH v2 2/2] gnu: Add xpadneo Leo Prikler
2021-09-14 22:03     ` bug#50157: " Liliana Marie Prikler

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).