linuxPackages.xpadneo: 0.9.6 -> 0.9.7 (#367667)

This commit is contained in:
Kira Bruneau
2024-12-27 14:57:47 -05:00
committed by GitHub
2 changed files with 3 additions and 25 deletions
+3 -5
View File
@@ -10,21 +10,19 @@
stdenv.mkDerivation (finalAttrs: {
pname = "xpadneo";
version = "0.9.6";
version = "0.9.7";
src = fetchFromGitHub {
owner = "atar-axis";
repo = "xpadneo";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-pX9zpAGnhDLKUAKOQ5iqtK8cKEkjCqDa5v3MwYViWX4=";
tag = "v${finalAttrs.version}";
hash = "sha256-evmjQrQPHe8F+6w12bnUv6P4QKGkm63cmP1HEv6equw=";
};
setSourceRoot = ''
export sourceRoot=$(pwd)/${finalAttrs.src.name}/hid-xpadneo/src
'';
patches = [ ./xpadneo-0.9.6-kernel-6.12.patch ];
nativeBuildInputs = kernel.moduleBuildDependencies;
buildInputs = [ bluez ];
@@ -1,20 +0,0 @@
--- a/hid-xpadneo.c
+++ b/hid-xpadneo.c
@@ -713,5 +713,9 @@
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
static u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize)
+#else
+static const u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize)
+#endif
{
struct xpadneo_devdata *xdata = hid_get_drvdata(hdev);
--- a/xpadneo.h
+++ b/xpadneo.h
@@ -13,4 +13,5 @@
#include <linux/hid.h>
+#include <linux/version.h>
#include "hid-ids.h"