Files
nixpkgs/pkgs/os-specific/linux/rtl88xxau-aircrack/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
kernel,
}:
stdenv.mkDerivation {
pname = "rtl88xxau-aircrack";
version = "${kernel.version}-unstable-2024-04-09";
src = fetchFromGitHub {
owner = "aircrack-ng";
repo = "rtl8812au";
rev = "63cf0b4584aa8878b0fe8ab38017f31c319bde3d";
hash = "sha256-tDsI/ZzsQm9999EpCpDFArfEIg/ueUJEbSYESbGxd4A=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
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 = {
description = ''
Aircrack-ng kernel module for Realtek 88XXau network cards
(8811au, 8812au, 8814au and 8821au chipsets) with monitor mode and injection support.'';
homepage = "https://github.com/aircrack-ng/rtl8812au";
license = lib.licenses.gpl2Only;
maintainers = [
lib.maintainers.ja1den
lib.maintainers.jethro
];
platforms = [
"x86_64-linux"
"i686-linux"
"aarch64-linux"
];
broken = kernel.kernelAtLeast "6.17";
};
}