From patchwork Sat Aug 21 22:00:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 32220 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 74CAE27BC78; Sat, 21 Aug 2021 23:02:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3081327BC6B for ; Sat, 21 Aug 2021 23:02:46 +0100 (BST) Received: from localhost ([::1]:57316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHZ4f-0005wA-9Z for patchwork@mira.cbaines.net; Sat, 21 Aug 2021 18:02:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHZ3z-0005v6-4l for guix-patches@gnu.org; Sat, 21 Aug 2021 18:02:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHZ3y-0002Qk-Lm for guix-patches@gnu.org; Sat, 21 Aug 2021 18:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHZ3y-0000Yw-Gq for guix-patches@gnu.org; Sat, 21 Aug 2021 18:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50157] [PATCH] gnu: Add xpadneo. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Aug 2021 22:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50157 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50157@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16295832942116 (code B ref -1); Sat, 21 Aug 2021 22:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Aug 2021 22:01:34 +0000 Received: from localhost ([127.0.0.1]:37972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHZ3W-0000Y3-7F for submit@debbugs.gnu.org; Sat, 21 Aug 2021 18:01:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:60508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHZ3U-0000Xw-A4 for submit@debbugs.gnu.org; Sat, 21 Aug 2021 18:01:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHZ3U-0005jc-2E for guix-patches@gnu.org; Sat, 21 Aug 2021 18:01:32 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:28907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHZ3Q-0001tL-I0 for guix-patches@gnu.org; Sat, 21 Aug 2021 18:01:31 -0400 Received: from localhost.localdomain (62-47-226-13.adsl.highway.telekom.at [62.47.226.13]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GsXWx5Mp3z3xX9 for ; Sun, 22 Aug 2021 00:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1629583277; bh=KkJQDS0Y0YbPY4IiLf5BSkXLNea8vIcGT4uaxjo+9ao=; h=From:To:Subject:Date; b=s0XNaPG2QtAlg3kB5NMLCXRJFGJXgMTkg6Ud9Gbs/17R9rx0sU2CqD0a02g4Y8oxu Q9snKsKAxagteHJyPJl7yZy0JamhhNCb6ZbSEXh3xh6QId/+OvDxN5xgnS7mCFJaBF XMKqODQpQNKhZq/W9y34ashqfNJLB7wiFP2FsvPY= From: Leo Prikler Date: Sun, 22 Aug 2021 00:00:53 +0200 Message-Id: <20210821220053.31441-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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+))) + ;;; ;;; Pluggable authentication modules (PAM).