diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-04-09 22:31:28 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-04-09 22:31:28 +0200 |
commit | dd987cb45875fa51fbfdefebac801bbe2d66f3e8 (patch) | |
tree | 4b2437a9eea784ee5a0e00199b452c3311c7649e /modules/hardware/rtl8192cu/default.nix | |
parent | 8c944f594e83f31b96a5a05ea2a7706a0305d4ec (diff) |
hardware/rtl8192cu: Fix build against 4.x kernels
This fix is more or less because of GCC 5 rather than just against kernel 4.x, because the number of arguments for rtw_select_queue() have been changed since 4.0 already. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/hardware/rtl8192cu/default.nix')
-rw-r--r-- | modules/hardware/rtl8192cu/default.nix | 3 |
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 : ''; |