linuxPackages_latest.xpad-noone: fix build

This commit is contained in:
ccicnce113424
2025-12-11 18:58:06 +08:00
parent ac3f8faff5
commit 191130431f
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
kernel,
kernelModuleMakeFlags,
}:
@@ -23,6 +24,15 @@ stdenv.mkDerivation (finalAttr: {
makeFlags = kernelModuleMakeFlags;
patches = [
# https://github.com/medusalix/xpad-noone/pull/9
(fetchpatch2 {
name = "remove-usage-of-deprecated-ida-simple-xx-api.patch";
url = "https://github.com/medusalix/xpad-noone/commit/e0f6ad5f2fabd5f8e74796a87154c92c8e9b6068.patch";
hash = "sha256-7Ye/rd51RpzThgts8R5RT0CRVvx5bKmy5i0KPidic30=";
})
];
postPatch = ''
substituteInPlace Makefile --replace-fail "/lib/modules/\$(shell uname -r)/build" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
'';