Commit 83da4f51 authored by j-brn's avatar j-brn
Browse files

kvmfr: fix build for linux-6_10

parent 64b9cf11
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ 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"