postgresqlPackages.sqlite_fdw: 2.4.0 -> 2.5.0 (#364337)
[NixPkgs.git] / pkgs / os-specific / linux / rtl8814au / default.nix
blobc808fa95dd243d7874f7d2366332f88737fb7ce6
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   kernel,
6 }:
8 stdenv.mkDerivation {
9   pname = "rtl8814au";
10   version = "${kernel.version}-unstable-2024-05-26";
12   src = fetchFromGitHub {
13     owner = "morrownr";
14     repo = "8814au";
15     rev = "810573647b837d88c4191597a0ea6d226f69f64c";
16     hash = "sha256-AaOnUy3igocsCF/FNogn+z+QcQiid7U7XimE68wAco0=";
17   };
19   nativeBuildInputs = kernel.moduleBuildDependencies;
20   makeFlags = kernel.makeFlags;
22   hardeningDisable = [ "pic" ];
24   env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
26   prePatch = ''
27     substituteInPlace ./Makefile \
28       --replace /lib/modules/ "${kernel.dev}/lib/modules/" \
29       --replace /sbin/depmod \# \
30       --replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
31   '';
33   preInstall = ''
34     mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
35   '';
37   enableParallelBuilding = true;
39   meta = with lib; {
40     description = "Realtek 8814AU USB WiFi driver";
41     homepage = "https://github.com/morrownr/8814au";
42     license = licenses.gpl2Only;
43     maintainers = [ maintainers.lassulus ];
44   };