1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

rtl8814au: init at 4.3.21

This commit is contained in:
lassulus 2018-02-24 14:00:34 +01:00
parent c2911034c3
commit 0ab8bf61af
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, fetchpatch, kernel }:
stdenv.mkDerivation rec {
name = "rtl8814au-${kernel.version}-${version}";
version = "4.3.21";
src = fetchFromGitHub {
owner = "zebulon2";
repo = "rtl8814au";
rev = "a58c56a5a6cb99ffb872f07cb67b68197911854f";
sha256 = "1ffm67da183nz009gm5v9w1bab081hrm113kk8knl9s5qbqnn13q";
};
buildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types";
prePatch = ''
substituteInPlace ./Makefile --replace /lib/modules/ "${kernel.dev}/lib/modules/"
substituteInPlace ./Makefile --replace '$(shell uname -r)' "${kernel.modDirVersion}"
substituteInPlace ./Makefile --replace /sbin/depmod \#
substituteInPlace ./Makefile --replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
preInstall = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
meta = {
description = "Realtek 8814AU USB WiFi driver";
homepage = https://github.com/zebulon2/rtl8814au;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.lassulus ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}

View file

@ -13257,6 +13257,8 @@ with pkgs;
rtl8812au = callPackage ../os-specific/linux/rtl8812au { };
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
openafs = callPackage ../servers/openafs/module.nix { };