Merge pull request #233222 from erdnaxe/xone-fix

xone: fix kernel 6.3 compatibility
This commit is contained in:
Ryan Lahfa 2023-05-21 17:08:10 +02:00 committed by GitHub
commit 1cdcff190f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';