about summary refs log tree commit diff
path: root/modules/hardware/rtl8192cu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hardware/rtl8192cu/default.nix')
-rw-r--r--modules/hardware/rtl8192cu/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/hardware/rtl8192cu/default.nix b/modules/hardware/rtl8192cu/default.nix
index 8e4619a4..2acfa0ec 100644
--- a/modules/hardware/rtl8192cu/default.nix
+++ b/modules/hardware/rtl8192cu/default.nix
@@ -15,6 +15,9 @@ let
       sha256 = "0v0rrxfmvi9flrg3xns826a6n1mlgd3vs5z2x59aqvwfj5b4rv7b";
     };
 
+    patches = lib.optional (lib.versionAtLeast kernel.version "4.0")
+      ./kernel-4.x.patch;
+
     postPatch = ''
       substituteInPlace Makefile --replace /sbin/depmod :
     '';