linuxPackages.kvmfr: patch for 5.16
This commit is contained in:
parent
297cb6514f
commit
36026bb0c4
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, kernel, kmod, looking-glass-client }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel, kmod, looking-glass-client }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "kvmfr";
|
pname = "kvmfr";
|
||||||
|
@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
|
||||||
hardeningDisable = [ "pic" "format" ];
|
hardeningDisable = [ "pic" "format" ];
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
patches = lib.optional (kernel.kernelAtLeast "5.16") (fetchpatch {
|
||||||
|
name = "kvmfr-5.16.patch";
|
||||||
|
url = "https://github.com/gnif/LookingGlass/commit/a9b5302a517e19d7a2da114acf71ef1e69cfb497.patch";
|
||||||
|
sha256 = "017nxlk2f7kyjp6llwa74dbczdb1jk8v791qld81dxhzkm9dyqqx";
|
||||||
|
stripLen = 1;
|
||||||
|
});
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"KVER=${kernel.modDirVersion}"
|
"KVER=${kernel.modDirVersion}"
|
||||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
|
@ -28,6 +35,6 @@ stdenv.mkDerivation rec {
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ j-brn ];
|
maintainers = with maintainers; [ j-brn ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
broken = kernel.kernelOlder "5.3" || kernel.kernelAtLeast "5.16";
|
broken = kernel.kernelOlder "5.3";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue