Skip to content

Commit

Permalink
xone: fix kernel 6.11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Raroh73 committed Sep 17, 2024
1 parent 20f9370 commit 48c436a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/os-specific/linux/xone/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, kernel }:
{ stdenv, lib, fetchFromGitHub, kernel, fetchpatch }:

stdenv.mkDerivation (finalAttrs: {
pname = "xone";
Expand All @@ -11,6 +11,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-srAEw1ai5KT0rmVUL3Dut9R2mNb00AAZVCcINikh2sM=";
};

patches = [
# Fix build on kernel 6.11
(fetchpatch {
name = "kernel-6.11.patch";
url = "https://patch-diff.githubusercontent.com/raw/medusalix/xone/pull/48.patch";
hash = "sha256-X14oZmxqqZJoBZxPXGZ9R8BAugx/hkSOgXlGwR5QCm8=";
})
];

setSourceRoot = ''
export sourceRoot=$(pwd)/${finalAttrs.src.name}
'';
Expand Down

0 comments on commit 48c436a

Please sign in to comment.