linuxPackages.rtl8188eus-aircrack: support kernels 6.8-6.11 (#340622)

authored by

Masum Reza and committed by
GitHub
0eed89c8 29bedb6f

+11 -17
+11 -17
pkgs/os-specific/linux/rtl8188eus-aircrack/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, kernel, bc, fetchpatch }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + kernel, 6 + bc, 7 + }: 2 8 3 9 stdenv.mkDerivation { 4 10 pname = "rtl8188eus-aircrack"; 5 - version = "${kernel.version}-unstable-2023-09-21"; 11 + version = "${kernel.version}-unstable-2024-09-18"; 6 12 7 13 src = fetchFromGitHub { 8 14 owner = "aircrack-ng"; 9 15 repo = "rtl8188eus"; 10 - rev = "3fae7237ba121f1169e9a2ea55040dc123697d3b"; 11 - sha256 = "sha256-ILSMEt9nMdg1ZbFeatWm8Yxf6a/E7Vm7KtKhN933KTc="; 16 + rev = "f969c544ab6100da3d80a5709e077f920f2df698"; 17 + sha256 = "sha256-uwO2nDDff4t0PZw3mLWmUPOHHftDgoaBaWMXQKHQunI="; 12 18 }; 13 19 14 20 prePatch = '' ··· 17 23 --replace /sbin/depmod \# \ 18 24 --replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/" 19 25 ''; 20 - # until https://github.com/aircrack-ng/rtl8188eus/pull/275 get merged using patches to fix and add newer kernel 6.7 support 21 - patches = [ 22 - (fetchpatch { 23 - url = "https://github.com/aircrack-ng/rtl8188eus/commit/dcf602320ce0cfa316c990ce067317954d75edae.patch"; 24 - hash = "sha256-AkrqqWv5TPHBfQ7FhS0urXnUw5QHQUrbvEb+NkLxpJA="; 25 - }) 26 - (fetchpatch { 27 - url = "https://github.com/aircrack-ng/rtl8188eus/commit/c5647f440a38e72c97054b949760ac14faf22b6c.patch"; 28 - hash = "sha256-0W0o68V0GkN+pJsI18ZMM8nyQre6FbOPpspegOOMioM="; 29 - }) 30 - ]; 31 - 32 26 33 27 hardeningDisable = [ "pic" ]; 34 28 ··· 45 39 homepage = "https://github.com/aircrack-ng/rtl8188eus"; 46 40 license = licenses.gpl2Only; 47 41 maintainers = with maintainers; [ moni ]; 48 - broken = (lib.versionAtLeast kernel.version "6.8") || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened); 42 + broken = (lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened; 49 43 }; 50 44 }