xone: fix kernel 6.11 compatibility (#342528)

This commit is contained in:
Peder Bergebakken Sundt 2024-09-20 03:53:52 +02:00 committed by GitHub
commit 8224ad87b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, kernel }:
{ stdenv, lib, fetchFromGitHub, kernel, fetchpatch }:
stdenv.mkDerivation (finalAttrs: {
pname = "xone";
@ -11,6 +11,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-srAEw1ai5KT0rmVUL3Dut9R2mNb00AAZVCcINikh2sM=";
};
patches = [
# Fix build on kernel 6.11
# https://github.com/medusalix/xone/pull/48
(fetchpatch {
name = "kernel-6.11.patch";
url = "https://github.com/medusalix/xone/commit/28df566c38e0ee500fd5f74643fc35f21a4ff696.patch";
hash = "sha256-X14oZmxqqZJoBZxPXGZ9R8BAugx/hkSOgXlGwR5QCm8=";
})
];
setSourceRoot = ''
export sourceRoot=$(pwd)/${finalAttrs.src.name}
'';