mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
linuxPackages.rtl8188eus: unstable-2021-05-04 -> unstable-2022-03-19
This commit is contained in:
parent
fa74a92f63
commit
0e790351a0
|
@ -1,22 +1,16 @@
|
|||
{ lib, stdenv, fetchFromGitHub, kernel, bc }:
|
||||
{ lib, stdenv, fetchFromGitHub, kernel, bc, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "rtl8188eus-aircrack";
|
||||
version = "${kernel.version}-unstable-2021-05-04";
|
||||
version = "${kernel.version}-unstable-2022-03-19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aircrack-ng";
|
||||
repo = "rtl8188eus";
|
||||
rev = "6146193406b62e942d13d4d43580ed94ac70c218";
|
||||
sha256 = "sha256-85STELbFB7QmTaM8GvJNlWvAg6KPAXeYRiMb4cGA6RY=";
|
||||
rev = "0958f294f90b49d6bad4972b14f90676e5d858d3";
|
||||
sha256 = "sha256-dkCcwvOLxqU1IZ/OXTp67akjWgsaH1Cq4N8d9slMRI8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bc ];
|
||||
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace ./Makefile \
|
||||
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
|
||||
|
@ -25,17 +19,30 @@ stdenv.mkDerivation {
|
|||
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/aircrack-ng/rtl8188eus/commit/daa3a2e12290050be3af956915939a55aed50d5f.patch";
|
||||
hash = "sha256-VsvaAhO74LzqUxbmdDT9qwVl6Y9lXfGfrHHK3SbnOVA=";
|
||||
})
|
||||
];
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [ bc ];
|
||||
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "RealTek RTL8188eus WiFi driver with monitor mode & frame injection support";
|
||||
homepage = "https://github.com/aircrack-ng/rtl8188eus";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
broken = kernel.kernelAtLeast "5.15" || kernel.isHardened;
|
||||
broken = (lib.versionAtLeast kernel.version "5.17") || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue