nixpkgs/pkgs/os-specific/linux/rtl88x2bu/default.nix
Otavio Salvador 79ca6f5e30 linuxPackages.rtl88x2bu: unstable-2023-09-24 -> unstable-2023-11-29
Includes:

,----
| cd2b6cb update docs
| e81b14f Merge pull request #193 from misha4gps/main
| f262b80 added support for rhel8.9
| f632e68 update docs
| c7fd4eb Merge pull request #192 from misha4gps/main
| dcc8870 added support for rhel9.3
| 305a912 cleanup support for kernel 6.7
| 3345192 flags for gcc-13
| 157e7a0 repair support for kernel 6.7
| 27684ce repair support for kernel 6.7
| fa31f05 support kernel 6.7
| 05b1288 update docs and scripts
`----

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2024-01-15 14:35:27 -03:00

39 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, kernel, bc }:
stdenv.mkDerivation {
pname = "rtl88x2bu";
version = "${kernel.version}-unstable-2023-11-29";
src = fetchFromGitHub {
owner = "morrownr";
repo = "88x2bu-20210702";
rev = "cd2b6cbd9c8fbfebee8a1f28fab8e4434450456c";
sha256 = "sha256-t1lLJSEDzY2zvgcKYaxUq/umrlLpxu4+4zWmG8R0Wz4=";
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = [ bc ] ++ kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags;
prePatch = ''
substituteInPlace ./Makefile \
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
--replace /sbin/depmod \# \
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
preInstall = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Realtek rtl88x2bu driver";
homepage = "https://github.com/morrownr/88x2bu-20210702";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ otavio ];
};
}