Merge pull request #279702 from lonyelon/master
rtl8852au: init at 70bdde2
This commit is contained in:
commit
6a456955a2
|
@ -11662,6 +11662,12 @@
|
||||||
github = "LongerHV";
|
github = "LongerHV";
|
||||||
githubId = 46924944;
|
githubId = 46924944;
|
||||||
};
|
};
|
||||||
|
lonyelon = {
|
||||||
|
email = "sergio@lony.xyz";
|
||||||
|
name = "Sergio Miguéns Iglesias";
|
||||||
|
github = "lonyelon";
|
||||||
|
githubId = 18664655;
|
||||||
|
};
|
||||||
lopsided98 = {
|
lopsided98 = {
|
||||||
email = "benwolsieffer@gmail.com";
|
email = "benwolsieffer@gmail.com";
|
||||||
github = "lopsided98";
|
github = "lopsided98";
|
||||||
|
|
52
pkgs/os-specific/linux/rtl8852au/default.nix
Normal file
52
pkgs/os-specific/linux/rtl8852au/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, kernel, bc, nukeReferences }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "rtl8852au";
|
||||||
|
version = "${kernel.version}-unstable-2023-11-24";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lwfinger";
|
||||||
|
repo = "rtl8852au";
|
||||||
|
rev = "70bdde265b9ab002daf11d4bea1a42baa8da4325";
|
||||||
|
hash = "sha256-6ARS7/0iKYajpMH+f+jWDxIkPY9ZixJkk864oKom4l4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ bc nukeReferences ] ++ kernel.moduleBuildDependencies;
|
||||||
|
hardeningDisable = [ "pic" "format" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ./Makefile \
|
||||||
|
--replace-fail /sbin/depmod \# \
|
||||||
|
--replace-fail '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/" \
|
||||||
|
--replace-fail '/usr/lib/systemd/system-sleep' "$out/usr/lib/systemd/system-sleep"
|
||||||
|
substituteInPlace ./platform/i386_pc.mk \
|
||||||
|
--replace-fail /lib/modules "${kernel.dev}/lib/modules"
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
||||||
|
("CONFIG_PLATFORM_I386_PC=" + (if stdenv.hostPlatform.isx86 then "y" else "n"))
|
||||||
|
("CONFIG_PLATFORM_ARM_RPI=" + (if stdenv.hostPlatform.isAarch then "y" else "n"))
|
||||||
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||||
|
];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||||
|
mkdir -p "$out/usr/lib/systemd/system-sleep"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
nuke-refs $out/lib/modules/*/kernel/net/wireless/*.ko
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Driver for Realtek 802.11ac, rtl8852au, provides the 8852au mod";
|
||||||
|
homepage = "https://github.com/lwfinger/rtl8852au";
|
||||||
|
license = licenses.gpl2Only;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ lonyelon ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -441,6 +441,8 @@ in {
|
||||||
|
|
||||||
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };
|
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };
|
||||||
|
|
||||||
|
rtl8852au = callPackage ../os-specific/linux/rtl8852au { };
|
||||||
|
|
||||||
rtl88xxau-aircrack = callPackage ../os-specific/linux/rtl88xxau-aircrack {};
|
rtl88xxau-aircrack = callPackage ../os-specific/linux/rtl88xxau-aircrack {};
|
||||||
|
|
||||||
rtl8821au = callPackage ../os-specific/linux/rtl8821au { };
|
rtl8821au = callPackage ../os-specific/linux/rtl8821au { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user