kvmfr: fix build for linux-6_10

This commit is contained in:
j-brn 2024-07-30 22:10:06 +02:00
parent 64b9cf1101
commit 83da4f513d

View File

@ -1,4 +1,4 @@
{ lib, stdenv, kernel, looking-glass-client }:
{ lib, stdenv, fetchpatch, kernel, looking-glass-client }:
stdenv.mkDerivation {
pname = "kvmfr";
@ -9,6 +9,15 @@ stdenv.mkDerivation {
hardeningDisable = [ "pic" "format" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
patches = [
# fix build for linux-6_10
(fetchpatch {
url = "https://github.com/gnif/LookingGlass/commit/7305ce36af211220419eeab302ff28793d515df2.patch";
hash = "sha256-97nZsIH+jKCvSIPf1XPf3i8Wbr24almFZzMOhjhLOYk=";
stripLen = 1;
})
];
makeFlags = [
"KVER=${kernel.modDirVersion}"
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"