linuxPackages.rtl8188eus: support kernels 6.8-6.11
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,20 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, kernel, bc, fetchpatch }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
kernel,
|
||||||
|
bc,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "rtl8188eus-aircrack";
|
pname = "rtl8188eus-aircrack";
|
||||||
version = "${kernel.version}-unstable-2023-09-21";
|
version = "${kernel.version}-unstable-2024-09-18";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aircrack-ng";
|
owner = "aircrack-ng";
|
||||||
repo = "rtl8188eus";
|
repo = "rtl8188eus";
|
||||||
rev = "3fae7237ba121f1169e9a2ea55040dc123697d3b";
|
rev = "f969c544ab6100da3d80a5709e077f920f2df698";
|
||||||
sha256 = "sha256-ILSMEt9nMdg1ZbFeatWm8Yxf6a/E7Vm7KtKhN933KTc=";
|
sha256 = "sha256-uwO2nDDff4t0PZw3mLWmUPOHHftDgoaBaWMXQKHQunI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
@@ -17,18 +23,6 @@ stdenv.mkDerivation {
|
|||||||
--replace /sbin/depmod \# \
|
--replace /sbin/depmod \# \
|
||||||
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||||
'';
|
'';
|
||||||
# until https://github.com/aircrack-ng/rtl8188eus/pull/275 get merged using patches to fix and add newer kernel 6.7 support
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/aircrack-ng/rtl8188eus/commit/dcf602320ce0cfa316c990ce067317954d75edae.patch";
|
|
||||||
hash = "sha256-AkrqqWv5TPHBfQ7FhS0urXnUw5QHQUrbvEb+NkLxpJA=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/aircrack-ng/rtl8188eus/commit/c5647f440a38e72c97054b949760ac14faf22b6c.patch";
|
|
||||||
hash = "sha256-0W0o68V0GkN+pJsI18ZMM8nyQre6FbOPpspegOOMioM=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
@@ -45,6 +39,6 @@ stdenv.mkDerivation {
|
|||||||
homepage = "https://github.com/aircrack-ng/rtl8188eus";
|
homepage = "https://github.com/aircrack-ng/rtl8188eus";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Only;
|
||||||
maintainers = with maintainers; [ moni ];
|
maintainers = with maintainers; [ moni ];
|
||||||
broken = (lib.versionAtLeast kernel.version "6.8") || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
|
broken = (lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user