1 { lib, stdenv, fetchFromGitHub, kernel }:
5 version = "${kernel.version}-unstable-2024-05-26";
7 src = fetchFromGitHub {
10 rev = "810573647b837d88c4191597a0ea6d226f69f64c";
11 hash = "sha256-AaOnUy3igocsCF/FNogn+z+QcQiid7U7XimE68wAco0=";
14 nativeBuildInputs = kernel.moduleBuildDependencies;
15 makeFlags = kernel.makeFlags;
17 hardeningDisable = [ "pic" ];
19 env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
22 substituteInPlace ./Makefile \
23 --replace /lib/modules/ "${kernel.dev}/lib/modules/" \
24 --replace /sbin/depmod \# \
25 --replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
29 mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
32 enableParallelBuilding = true;
35 description = "Realtek 8814AU USB WiFi driver";
36 homepage = "https://github.com/morrownr/8814au";
37 license = licenses.gpl2Only;
38 maintainers = [ maintainers.lassulus ];