From 3dbad097e0893ca02b9323e239b906fcdd05fdb2 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 1 Aug 2024 13:54:02 +0200 Subject: [PATCH] pkgs.mrf-driver: fix build with Linux >= 6.3 --- pkgs/epnix/kernel-modules/mrf/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/epnix/kernel-modules/mrf/default.nix b/pkgs/epnix/kernel-modules/mrf/default.nix index 2da2ef49..2afa0185 100644 --- a/pkgs/epnix/kernel-modules/mrf/default.nix +++ b/pkgs/epnix/kernel-modules/mrf/default.nix @@ -1,14 +1,23 @@ { stdenv, - lib, kernel, epnix, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { pname = "mrf-driver"; inherit (epnix.support.mrfioc2) version src; + patches = [ + (fetchpatch { + name = "use-vm_flags_set-on-kernels-6-3.patch"; + url = "https://github.com/epics-modules/mrfioc2/commit/64634a23a035d336de5d720b2e1ecafcc918d737.patch"; + hash = "sha256-6/obmLfLKfhcwn12O0KKpogWCzg7Evs1kIoNm0x7Puw="; + stripLen = 2; + }) + ]; + # Needed for kernel modules hardeningDisable = ["format" "pic"];