linuxPackages.digimend: fix build with linux 5.4
This commit is contained in:
parent
3e2e061529
commit
dae537c37a
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, kernel }:
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, kernel }:
|
||||
|
||||
assert stdenv.lib.versionAtLeast kernel.version "3.5";
|
||||
|
||||
|
@ -20,6 +20,15 @@ stdenv.mkDerivation rec {
|
|||
sed 's/depmod /true /' -i Makefile
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# Fix build on Linux kernel >= 5.4
|
||||
# https://github.com/DIGImend/digimend-kernel-drivers/pull/331
|
||||
(fetchpatch {
|
||||
url = "https://github.com/DIGImend/digimend-kernel-drivers/commit/fb8a2eb6a9198bb35aaccb81e22dd5ebe36124d1.patch";
|
||||
sha256 = "1j7l5hsk59gccydpf7n6xx1ki4rm6aka7k879a7ah5jn8p1ylgw9";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
postInstall = ''
|
||||
|
|
Loading…
Reference in a new issue