From ff1567f01ef1a41d2a558571d9eac83d7c99f7fb Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Thu, 4 Dec 2025 23:56:44 -0500 Subject: [PATCH] linuxPackages_latest.xpadneo: fix build --- pkgs/os-specific/linux/xpadneo/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/os-specific/linux/xpadneo/default.nix b/pkgs/os-specific/linux/xpadneo/default.nix index 70f1ef00cad7..b0d7f2526533 100644 --- a/pkgs/os-specific/linux/xpadneo/default.nix +++ b/pkgs/os-specific/linux/xpadneo/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, kernel, kernelModuleMakeFlags, bluez, @@ -20,6 +21,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-evmjQrQPHe8F+6w12bnUv6P4QKGkm63cmP1HEv6equw="; }; + patches = [ + # Remove deprecated ida_simple_xx() usage + (fetchpatch { + url = "https://github.com/orderedstereographic/xpadneo/commit/233e1768fff838b70b9e942c4a5eee60e57c54d4.patch"; + hash = "sha256-HL+SdL9kv3gBOdtsSyh49fwYgMCTyNkrFrT+Ig0ns7E="; + stripLen = 2; + }) + ]; + setSourceRoot = '' export sourceRoot=$(pwd)/${finalAttrs.src.name}/hid-xpadneo/src '';