Unverified Commit 1cdcff19 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

Merge pull request #233222 from erdnaxe/xone-fix

xone: fix kernel 6.3 compatibility
parents 72708654 e413b929
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ 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
  '';