NixOS / NixOS/nixpkgs

rtl88x2bu fails to build under kernel v6.15 (latest)

Open
#423,705 3 comments 1 reaction 1 assignee View on GitHub

@antholeole is already working on this.

Since Jul 9, 2025.

0.kind: bug 2.status: stale
Dominant language
Nix
Stars
26.2k
Forks
20.1k
PR merge metrics
PR metrics pending

Description

Nixpkgs version
  • Stable (25.05)
Describe the bug

there are build failures related to missing headers. in general, it seems like the source being pulled in currently is no longer updated.

I was able to get an updated source working

direct link to the source: https://github.com/RinCat/RTL88x2BU-Linux-Driver/

I'll leave this here for now and I'll get around to submitting a pull soon. this package is pretty unused and doesn't seem to have been updated in a while.

Build Failures
error: builder for '/nix/store/lqabfcq6cgrm7y3apabsf02p91v4701w-rtl88x2bu-6.15.3-unstable-2024-06-09.drv' failed with exit code 2;
       last 25 log lines:
       >       |          ^~~~~~~~~~~~~
       > compilation terminated.
       > make[4]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/scripts/Makefile.build:203: core/rtw_wlan_util.o] Error 1
       > make[4]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/scripts/Makefile.build:203: core/rtw_vht.o] Error 1
       > core/rtw_pwrctrl.c:17:10: fatal error: drv_types.h: No such file or directory
       >    17 | #include <drv_types.h>
       >       |          ^~~~~~~~~~~~~
       > compilation terminated.
       > make[4]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/scripts/Makefile.build:203: core/rtw_pwrctrl.o] Error 1
       > core/rtw_rf.c:17:10: fatal error: drv_types.h: No such file or directory
       >    17 | #include <drv_types.h>
       >       |          ^~~~~~~~~~~~~
       > compilation terminated.
       > core/rtw_chplan.c:17:10: fatal error: drv_types.h: No such file or directory
       >    17 | #include <drv_types.h>
       >       |          ^~~~~~~~~~~~~
       > compilation terminated.
       > make[4]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/scripts/Makefile.build:203: core/rtw_rf.o] Error 1
       > make[4]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/scripts/Makefile.build:203: core/rtw_chplan.o] Error 1
       > make[3]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/Makefile:2003: .] Error 2
       > make[2]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/Makefile:248: __sub-make] Error 2
       > make[2]: Leaving directory '/build/source'
       > make[1]: *** [/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/source/Makefile:248: __sub-make] Error 2
       > make[1]: Leaving directory '/nix/store/n32dknw7cdi01yaa4hbxcz3xfw0wh1ri-linux-6.15.3-dev/lib/modules/6.15.3/build'
       > make: *** [Makefile:2527: modules] Error 2
       For full logs, run:
         nix log /nix/store/lqabfcq6cgrm7y3apabsf02p91v4701w-rtl88x2bu-6.15.3-unstable-2024-06-09.drv

Steps to reproduce

attempt to use config.boot.kernelPackages.rtl88x2bu with linuxPackages_lastest, observe build failures.

Expected behaviour

builds and kernel mod is added

System metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 6.15.3, NixOS, 25.05 (Warbler), 25.05.20250620.b2485d5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.3`
 - nixpkgs: `/nix/store/qvzh8safmlwl7akk3ffgx1mjw8hs2w76-source`
Notify maintainers

@otavio


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.