summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorAlexandre Iooss <erdnaxe@crans.org>2023-05-21 14:15:46 +0200
committerAlexandre Iooss <erdnaxe@crans.org>2023-05-21 14:15:46 +0200
commite413b929e7e0f886a6c8659b8ec127aeed086134 (patch)
tree3801cf9b8a493b7e651172bf27eb7e596eb9f97e /pkgs/os-specific
parent58bd7810d72bd8e1056a8959d99bfeeb2092676f (diff)
xone: fix kernel 6.3 compatibility
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/xone/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/xone/default.nix b/pkgs/os-specific/linux/xone/default.nix
index 71bafb7abd9b8..da0ae54e560f8 100644
--- a/pkgs/os-specific/linux/xone/default.nix
+++ b/pkgs/os-specific/linux/xone/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub, kernel, fetchurl }:
+{ stdenv, lib, fetchFromGitHub, kernel, fetchurl, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "xone";
@@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-h+j4xCV9R6hp9trsv1NByh9m0UBafOz42ZuYUjclILE=";
   };
 
+  patches = [
+    # Fix build on kernel 6.3
+    (fetchpatch {
+      name = "kernel-6.3.patch";
+      url = "https://github.com/medusalix/xone/commit/bbf0dcc484c3f5611f4e375da43e0e0ef08f3d18.patch";
+      hash = "sha256-A2OzRRk4XT++rS6k6EIyiPy/LJptvVRUxoP7CIGrPWU=";
+    })
+  ];
+
   setSourceRoot = ''
     export sourceRoot=$(pwd)/source
   '';